rust/tests/ui/impl-trait/issues/issue-70971.rs
2023-01-11 09:32:08 +00:00

5 lines
130 B
Rust

fn main() {
let x : (impl Copy,) = (true,);
//~^ `impl Trait` only allowed in function and inherent method return types
}