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