mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
9 lines
216 B
Rust
9 lines
216 B
Rust
// tests the good error message, not "missing module Foo" or something else unexpected
|
|
|
|
struct Foo;
|
|
|
|
fn main() {
|
|
Foo::bar();
|
|
//~^ ERROR no associated function or constant named `bar` found for struct `Foo`
|
|
}
|