rust/tests/ui/traits/no-fallback-multiple-impls.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
290 B
Rust
Raw Normal View History

trait Fallback {
fn foo(&self) {}
}
impl Fallback for i32 {}
impl Fallback for u64 {}
impl Fallback for usize {}
fn main() {
missing();
//~^ ERROR cannot find function `missing` in this scope
0.foo();
// But then we shouldn't report an inference ambiguity here...
}