mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
186 B
Rust
15 lines
186 B
Rust
struct Qux;
|
|
|
|
trait Foo {
|
|
fn foo();
|
|
}
|
|
|
|
trait FooBar {
|
|
fn foo() {}
|
|
}
|
|
|
|
fn main() {
|
|
Qux.foo();
|
|
//~^ ERROR no method named `foo` found for struct `Qux` in the current scope
|
|
}
|