mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 06:47:34 +00:00
12 lines
283 B
Rust
12 lines
283 B
Rust
|
#![feature(non_lifetime_binders)]
|
||
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
||
|
|
||
|
trait Trait<Input> {
|
||
|
type Assoc;
|
||
|
}
|
||
|
|
||
|
fn uwu(_: impl for<T> Trait<(), Assoc = impl Trait<T>>) {}
|
||
|
//~^ ERROR `impl Trait` can only mention type parameters from an fn or impl
|
||
|
|
||
|
fn main() {}
|