diff options
Diffstat (limited to 'src/test/ui/compile-fail-migration/trait-bounds-not-on-struct.stderr')
| -rw-r--r-- | src/test/ui/compile-fail-migration/trait-bounds-not-on-struct.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/compile-fail-migration/trait-bounds-not-on-struct.stderr b/src/test/ui/compile-fail-migration/trait-bounds-not-on-struct.stderr new file mode 100644 index 00000000000..929a1bfaa15 --- /dev/null +++ b/src/test/ui/compile-fail-migration/trait-bounds-not-on-struct.stderr @@ -0,0 +1,15 @@ +error[E0404]: expected trait, found struct `Foo` + --> $DIR/trait-bounds-not-on-struct.rs:15:16 + | +LL | fn foo(_x: Box<Foo + Send>) { } //~ ERROR expected trait, found struct `Foo` + | ^^^ not a trait + +error[E0404]: expected trait, found struct `Vec` + --> $DIR/trait-bounds-not-on-struct.rs:17:21 + | +LL | type A<T> = Box<dyn Vec<T>>; //~ ERROR expected trait, found struct `Vec` + | ^^^^^^ not a trait + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0404`. |
