@@ -31,17 +31,29 @@ help: consider further restricting `Self`
31
31
LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
32
32
| +++++++++++++++++++++++++
33
33
34
- error[E0277 ]: the trait bound ` Self: Deref` is not satisfied
34
+ error[E0271 ]: type mismatch resolving `< Self as Deref>::Target normalizes-to _`
35
35
--> $DIR/defaults-unsound-62211-1.rs:24:96
36
36
|
37
37
LL | 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
39
39
|
40
40
note: required by a bound in `UncheckedCopy::Output`
41
41
--> $DIR/defaults-unsound-62211-1.rs:24:31
42
42
|
43
43
LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
44
44
| ^^^^^^^^^^^^ 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`
45
57
help: consider further restricting `Self`
46
58
|
47
59
LL | trait UncheckedCopy: Sized + Deref {
@@ -63,6 +75,7 @@ help: consider further restricting `Self`
63
75
LL | trait UncheckedCopy: Sized + Copy {
64
76
| ++++++
65
77
66
- error: aborting due to 4 previous errors
78
+ error: aborting due to 5 previous errors
67
79
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