mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
267 B
Rust
15 lines
267 B
Rust
|
//@ known-bug: #120033
|
||
|
#![feature(non_lifetime_binders)]
|
||
|
|
||
|
pub trait Foo<T: ?Sized> {
|
||
|
type Bar<K: ?Sized>;
|
||
|
}
|
||
|
|
||
|
pub struct Bar<T: ?AutoTrait> {}
|
||
|
|
||
|
pub fn f<T1, T2>()
|
||
|
where
|
||
|
T1: for<T> Foo<usize, Bar = Bar<T>>,
|
||
|
T2: for<L, T> Foo<usize, Bar<T> = T1::Bar<T>>,
|
||
|
{}
|