Fallout: tests. As tests frequently elide things, lots of changes

here.  Some of this may have been poorly rebased, though I tried to be
careful and preserve the spirit of the test.
This commit is contained in:
Niko Matsakis
2015-02-12 10:29:52 -05:00
parent ef42c2befd
commit 872ce47955
306 changed files with 915 additions and 580 deletions

View File

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