2015-03-16 02:33:12 -05:00
|
|
|
// tests the good error message, not "missing module Foo" or something else unexpected
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
fn main() {
|
2017-06-02 15:20:36 -05:00
|
|
|
Foo::bar();
|
2020-01-08 10:05:31 -06:00
|
|
|
//~^ ERROR no function or associated item named `bar` found for struct `Foo`
|
2015-03-16 02:33:12 -05:00
|
|
|
}
|