Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
methods
/
method-ambiguity-no-rcvr.rs
blob: 8f36011d41f97b57fa1a33a1c65956794e57e3c3 [
file
] [
log
] [
blame
]
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
}