test: Fix fallout in tests

This commit is contained in:
Alex Crichton
2015-04-17 22:12:20 -07:00
parent eeb94886ad
commit 0791f9f406
112 changed files with 205 additions and 466 deletions

View File

@@ -11,9 +11,7 @@
// Test that an object type `Box<Foo>` is not considered to implement the
// trait `Foo`. Issue #5087.
use std::marker::MarkerTrait;
trait Foo : MarkerTrait {}
trait Foo {}
fn take_foo<F:Foo>(f: F) {}
fn take_object(f: Box<Foo>) { take_foo(f); }
//~^ ERROR the trait `Foo` is not implemented