mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
13 lines
170 B
Rust
13 lines
170 B
Rust
//@ known-bug: #127804
|
|
|
|
struct Thing;
|
|
|
|
pub trait Every {
|
|
type Assoc;
|
|
}
|
|
impl<T: ?Sized> Every for Thing {
|
|
type Assoc = T;
|
|
}
|
|
|
|
fn foo(_: <Thing as Every>::Assoc) {}
|