summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/issues/issue-105732.rs
blob: d7005065813a854823d8b3935b1355f2a571f0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(auto_traits)]

auto trait Foo {
    fn g(&self); //~ ERROR auto traits cannot have associated items
}

trait Bar {
    fn f(&self) {
        // issue #105788
        self.g(); //~ ERROR no method named `g` found for reference `&Self` in the current scope
    }
}

fn main() {}