Files
rust/tests/ui/traits/next-solver/normalize/normalize-path-for-method.rs

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

19 lines
232 B
Rust
Raw Normal View History

//@ 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();
}