Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
16
tests/ui/traits/no-fallback-multiple-impls.rs
Normal file
16
tests/ui/traits/no-fallback-multiple-impls.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
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...
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue