summary refs log tree commit diff
path: root/src/test/ui/issues/issue-7950.rs
blob: 7add8afee437f54c956ffa91038e9c61e94af5f9 (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 type `Foo`
}