rust/tests/ui/impl-trait/issues/issue-70971.rs
2023-10-04 19:51:43 +00:00

5 lines
143 B
Rust

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