blob: f2df7807b31ecdd79bf59b6fcbff8f26aa32b219 [file]
// issue: <https://github.com/rust-lang/rust/issues/142473>
//
//@ run-rustfix
#![allow(unused)]
struct T();
trait Trait {
type Assoc;
fn f();
}
impl Trait for () {
type Assoc = T;
fn f() {
T();
//~^ ERROR no associated function or constant named `Assoc` found for unit type `()` in the current scope
}
}
fn main() {}