mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
242 B
Rust
17 lines
242 B
Rust
//@ check-pass
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
trait Foo: for<T> Bar<T> {}
|
|
|
|
trait Bar<T> {
|
|
fn method() -> T;
|
|
}
|
|
|
|
fn x<T: Foo>() {
|
|
let _: i32 = T::method();
|
|
}
|
|
|
|
fn main() {}
|