11 lines
126 B
Rust
11 lines
126 B
Rust
|
|
//@ check-pass
|
||
|
|
|
||
|
|
#![feature(impl_trait_in_bindings)]
|
||
|
|
|
||
|
|
trait Foo {}
|
||
|
|
impl Foo for () {}
|
||
|
|
|
||
|
|
fn main() {
|
||
|
|
let x: impl Foo = ();
|
||
|
|
}
|