rustc/tests/ui/feature-gates/feature-gate-impl-trait-in-bindings.rs
2025-02-17 11:14:05 +01:00

5 lines
118 B
Rust

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