//@ run-rustfix

#![allow(unused)]

struct Constructor(i32);

trait Trait {
    type Out;

    fn mk() -> Self::Out;
}

impl Trait for () {
    type Out = Constructor;

    fn mk() -> Self::Out {
        Constructor(1)
        //~^ ERROR no associated function or constant named `Out` found for unit type `()`
    }
}

fn main() {}
