@@ -31,29 +31,17 @@ help: consider further restricting `Self`
3131LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
3232 | +++++++++++++++++++++++++
3333
34- error[E0271]: type mismatch resolving `<Self as Deref>::Target == str`
35- --> $DIR/defaults-unsound-62211-1.rs:24:96
36- |
37- LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
38- | ^^^^ types differ
39- |
40- note: required by a bound in `UncheckedCopy::Output`
41- --> $DIR/defaults-unsound-62211-1.rs:24:31
42- |
43- LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
44- | ^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
45-
4634error[E0277]: the trait bound `Self: Deref` is not satisfied
4735 --> $DIR/defaults-unsound-62211-1.rs:24:96
4836 |
4937LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
5038 | ^^^^ the trait `Deref` is not implemented for `Self`
5139 |
5240note: required by a bound in `UncheckedCopy::Output`
53- --> $DIR/defaults-unsound-62211-1.rs:24:25
41+ --> $DIR/defaults-unsound-62211-1.rs:24:31
5442 |
5543LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
56- | ^^^^^^^ ^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
44+ | ^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
5745help: consider further restricting `Self`
5846 |
5947LL | trait UncheckedCopy: Sized + Deref {
@@ -75,7 +63,6 @@ help: consider further restricting `Self`
7563LL | trait UncheckedCopy: Sized + Copy {
7664 | ++++++
7765
78- error: aborting due to 5 previous errors
66+ error: aborting due to 4 previous errors
7967
80- Some errors have detailed explanations: E0271, E0277.
81- For more information about an error, try `rustc --explain E0271`.
68+ For more information about this error, try `rustc --explain E0277`.
0 commit comments