mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 05:00:17 +00:00
17 lines
290 B
Rust
17 lines
290 B
Rust
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...
|
|
}
|