mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03: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`
|
|
}
|