rust/tests/ui/impl-trait/issues/issue-70971.rs

5 lines
120 B
Rust

fn main() {
let x : (impl Copy,) = (true,);
//~^ `impl Trait` is not allowed in the type of variable bindings
}