rust/tests/crashes/120033.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
267 B
Rust
Raw Normal View History

2024-04-15 16:01:02 -05:00
//@ 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>>,
{}