mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
19 lines
331 B
Rust
19 lines
331 B
Rust
#![feature(non_lifetime_binders)]
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
trait Other<U: ?Sized> {}
|
|
|
|
impl<U: ?Sized> Other<U> for U {}
|
|
|
|
#[rustfmt::skip]
|
|
fn foo<U: ?Sized>()
|
|
where
|
|
for<T> T: Other<U> {}
|
|
|
|
fn bar() {
|
|
foo::<_>();
|
|
//~^ ERROR the trait bound `T: Other<_>` is not satisfied
|
|
}
|
|
|
|
fn main() {}
|