Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
8
tests/ui/traits/object-does-not-impl-trait.rs
Normal file
8
tests/ui/traits/object-does-not-impl-trait.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Test that an object type `Box<Foo>` is not considered to implement the
|
||||
// trait `Foo`. Issue #5087.
|
||||
|
||||
trait Foo {}
|
||||
fn take_foo<F:Foo>(f: F) {}
|
||||
fn take_object(f: Box<dyn Foo>) { take_foo(f); }
|
||||
//~^ ERROR `Box<dyn Foo>: Foo` is not satisfied
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue