rust/tests/ui/issues/issue-7950.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
212 B
Rust
Raw Normal View History

2015-03-16 07:33:12 +00:00
// 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`
2015-03-16 07:33:12 +00:00
}