Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
12
tests/ui/impl-trait/impl-generic-mismatch-ab.rs
Normal file
12
tests/ui/impl-trait/impl-generic-mismatch-ab.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
use std::fmt::Debug;
|
||||
|
||||
trait Foo {
|
||||
fn foo<A: Debug>(&self, a: &A, b: &impl Debug);
|
||||
}
|
||||
|
||||
impl Foo for () {
|
||||
fn foo<B: Debug>(&self, a: &impl Debug, b: &B) { }
|
||||
//~^ ERROR method `foo` has an incompatible type for trait
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue