Files
rust/tests/ui/methods/issue-7950.rs
2026-03-28 16:18:11 +09:00

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`
}