mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-26 02:32:12 +00:00
19 lines
369 B
Rust
19 lines
369 B
Rust
// issue#132534
|
|
|
|
trait X {
|
|
fn a<T>() -> T::unknown<{}> {}
|
|
//~^ 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`
|
|
}
|
|
|
|
fn main() {}
|