mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
184 B
Rust
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;
|