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