21 lines
489 B
Rust
21 lines
489 B
Rust
// issue#132534
|
|
|
|
trait X {
|
|
fn a<T>() -> T::unknown<{}> {}
|
|
//~^ ERROR: associated type `unknown` not found for `T`
|
|
//~| ERROR: associated type `unknown` not found for `T`
|
|
}
|
|
|
|
trait Y {
|
|
fn a() -> NOT_EXIST::unknown<{}> {}
|
|
//~^ ERROR: failed to resolve: use of undeclared type `NOT_EXIST`
|
|
}
|
|
|
|
trait Z<T> {
|
|
fn a() -> T::unknown<{}> {}
|
|
//~^ ERROR: associated type `unknown` not found for `T`
|
|
//~| ERROR: associated type `unknown` not found for `T`
|
|
}
|
|
|
|
fn main() {}
|