mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
19 lines
230 B
Rust
19 lines
230 B
Rust
// compile-flags: -Znext-solver
|
|
// check-pass
|
|
|
|
trait Mirror {
|
|
type Assoc;
|
|
}
|
|
impl<T> Mirror for T {
|
|
type Assoc = T;
|
|
}
|
|
|
|
struct Foo;
|
|
impl Foo {
|
|
fn new() -> Self { Foo }
|
|
}
|
|
|
|
fn main() {
|
|
<Foo as Mirror>::Assoc::new();
|
|
}
|