rust/tests/crashes/126942.rs
2024-07-04 23:44:10 +02:00

12 lines
184 B
Rust

//@ known-bug: rust-lang/rust#126942
struct Thing;
pub trait Every {
type Assoc;
}
impl<T: ?Sized> Every for Thing {
type Assoc = T;
}
static I: <Thing as Every>::Assoc = 3;