summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-87181/empty-tuple-method.rs
blob: be68ad32ae55bb35e1b097361f86492acee30df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Bar<T> {
    bar: T
}

struct Foo();
impl Foo {
    fn foo(&self) { }
}

fn main() {
    let thing = Bar { bar: Foo };
    thing.bar.foo();
    //~^ ERROR no method named `foo` found for fn item `fn() -> Foo {Foo}` in the current scope [E0599]
}