10 lines
171 B
Rust
10 lines
171 B
Rust
trait Trait {}
|
|
impl Trait for () {}
|
|
|
|
fn foo<'a: 'a>() {
|
|
let _x: impl Trait = ();
|
|
//~^ `impl Trait` is not allowed in the type of variable bindings
|
|
}
|
|
|
|
fn main() {}
|