diff options
Diffstat (limited to 'src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr')
-rw-r--r-- | src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr b/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr new file mode 100644 index 000000000..bfbbe7fd2 --- /dev/null +++ b/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr @@ -0,0 +1,16 @@ +error[E0277]: the trait bound `str: Clone` is not satisfied + --> $DIR/check-trait-object-bounds-1.rs:12:5 + | +LL | f::<dyn X<Y = str>>(); + | ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str` + | + = help: the trait `Clone` is implemented for `String` +note: required by a bound in `f` + --> $DIR/check-trait-object-bounds-1.rs:7:9 + | +LL | fn f<T: X + ?Sized>() { + | ^ required by this bound in `f` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |