summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-7950.rs
blob: d3dcb3380bbccbf89baa5f640e1cf2a75ee572c7 (plain)
1
2
3
4
5
6
7
8
// tests the good error message, not "missing module Foo" or something else unexpected

struct Foo;

fn main() {
    Foo::bar();
    //~^ ERROR no function or associated item named `bar` found for struct `Foo`
}