1 error[E0277]: `Self` doesn't implement `std::fmt::Display`
2 --> $DIR/defaults-unsound-62211-2.rs:20:5
4 LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^^^^^^^^
7 | | required by this bound in `UncheckedCopy::Output`
8 | `Self` cannot be formatted with the default formatter
10 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
11 help: consider further restricting `Self`
13 LL | trait UncheckedCopy: Sized + std::fmt::Display {
16 error[E0277]: cannot add-assign `&'static str` to `Self`
17 --> $DIR/defaults-unsound-62211-2.rs:20:5
19 LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 | | required by this bound in `UncheckedCopy::Output`
23 | no implementation for `Self += &'static str`
25 help: consider further restricting `Self`
27 LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^
30 error[E0277]: the trait bound `Self: Deref` is not satisfied
31 --> $DIR/defaults-unsound-62211-2.rs:20:5
33 LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
34 | ^^^^^^^^^^^^^^^^^^^^-------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 | | required by this bound in `UncheckedCopy::Output`
37 | the trait `Deref` is not implemented for `Self`
39 help: consider further restricting `Self`
41 LL | trait UncheckedCopy: Sized + Deref {
44 error[E0277]: the trait bound `Self: Copy` is not satisfied
45 --> $DIR/defaults-unsound-62211-2.rs:20:5
47 LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
48 | ^^^^^^^^^^^^^----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 | | required by this bound in `UncheckedCopy::Output`
51 | the trait `Copy` is not implemented for `Self`
53 help: consider further restricting `Self`
55 LL | trait UncheckedCopy: Sized + Copy {
58 error: aborting due to 4 previous errors
60 For more information about this error, try `rustc --explain E0277`.