@@ -31,17 +31,29 @@ help: consider further restricting `Self`
3131LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
3232 | +++++++++++++++++++++++++
3333
34- error[E0277 ]: the trait bound ` Self: Deref` is not satisfied
34+ error[E0271 ]: type mismatch resolving `< Self as Deref>::Target normalizes-to _`
3535 --> $DIR/defaults-unsound-62211-1.rs:24:96
3636 |
3737LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
38- | ^^^^ the trait `Deref` is not implemented for `Self`
38+ | ^^^^ types differ
3939 |
4040note: required by a bound in `UncheckedCopy::Output`
4141 --> $DIR/defaults-unsound-62211-1.rs:24:31
4242 |
4343LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
4444 | ^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
45+
46+ error[E0277]: the trait bound `Self: Deref` is not satisfied
47+ --> $DIR/defaults-unsound-62211-1.rs:24:96
48+ |
49+ LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
50+ | ^^^^ the trait `Deref` is not implemented for `Self`
51+ |
52+ note: required by a bound in `UncheckedCopy::Output`
53+ --> $DIR/defaults-unsound-62211-1.rs:24:25
54+ |
55+ LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
56+ | ^^^^^^^^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
4557help: consider further restricting `Self`
4658 |
4759LL | trait UncheckedCopy: Sized + Deref {
@@ -63,6 +75,7 @@ help: consider further restricting `Self`
6375LL | trait UncheckedCopy: Sized + Copy {
6476 | ++++++
6577
66- error: aborting due to 4 previous errors
78+ error: aborting due to 5 previous errors
6779
68- For more information about this error, try `rustc --explain E0277`.
80+ Some errors have detailed explanations: E0271, E0277.
81+ For more information about an error, try `rustc --explain E0271`.
0 commit comments