mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
17 lines
260 B
Rust
17 lines
260 B
Rust
//@ check-pass
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
trait Trait<T: ?Sized> {}
|
|
|
|
impl<T: ?Sized> Trait<T> for i32 {}
|
|
|
|
fn produce() -> impl for<T> Trait<T> {
|
|
16
|
|
}
|
|
|
|
fn main() {
|
|
let _ = produce();
|
|
}
|