rust/tests/ui/feature-gates/feature-gate-impl-trait-in-...

5 lines
118 B
Rust

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