]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | error[E0277]: `Self` doesn't implement `std::fmt::Display` |
2 | --> $DIR/defaults-unsound-62211-1.rs:20:5 | |
74b04a01 | 3 | | |
29967ef6 | 4 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; |
94222f64 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Self` cannot be formatted with the default formatter |
74b04a01 | 6 | | |
29967ef6 | 7 | = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
94222f64 XL |
8 | note: required by a bound in `UncheckedCopy::Output` |
9 | --> $DIR/defaults-unsound-62211-1.rs:20:86 | |
10 | | | |
11 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; | |
12 | | ^^^^^^^ required by this bound in `UncheckedCopy::Output` | |
f9f354fc XL |
13 | help: consider further restricting `Self` |
14 | | | |
29967ef6 | 15 | LL | trait UncheckedCopy: Sized + std::fmt::Display { |
94222f64 | 16 | | +++++++++++++++++++ |
74b04a01 | 17 | |
29967ef6 XL |
18 | error[E0277]: cannot add-assign `&'static str` to `Self` |
19 | --> $DIR/defaults-unsound-62211-1.rs:20:5 | |
74b04a01 | 20 | | |
29967ef6 | 21 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; |
94222f64 | 22 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Self += &'static str` |
74b04a01 | 23 | | |
94222f64 XL |
24 | note: required by a bound in `UncheckedCopy::Output` |
25 | --> $DIR/defaults-unsound-62211-1.rs:20:47 | |
26 | | | |
27 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; | |
28 | | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output` | |
f9f354fc XL |
29 | help: consider further restricting `Self` |
30 | | | |
29967ef6 | 31 | LL | trait UncheckedCopy: Sized + AddAssign<&'static str> { |
94222f64 | 32 | | +++++++++++++++++++++++++ |
74b04a01 | 33 | |
6a06907d XL |
34 | error[E0277]: the trait bound `Self: Deref` is not satisfied |
35 | --> $DIR/defaults-unsound-62211-1.rs:20:5 | |
36 | | | |
37 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; | |
94222f64 | 38 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Deref` is not implemented for `Self` |
6a06907d | 39 | | |
94222f64 XL |
40 | note: required by a bound in `UncheckedCopy::Output` |
41 | --> $DIR/defaults-unsound-62211-1.rs:20:25 | |
42 | | | |
43 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; | |
44 | | ^^^^^^^^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output` | |
6a06907d XL |
45 | help: consider further restricting `Self` |
46 | | | |
47 | LL | trait UncheckedCopy: Sized + Deref { | |
94222f64 | 48 | | +++++++ |
6a06907d | 49 | |
29967ef6 XL |
50 | error[E0277]: the trait bound `Self: Copy` is not satisfied |
51 | --> $DIR/defaults-unsound-62211-1.rs:20:5 | |
74b04a01 | 52 | | |
29967ef6 | 53 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; |
94222f64 | 54 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Self` |
74b04a01 | 55 | | |
94222f64 XL |
56 | note: required by a bound in `UncheckedCopy::Output` |
57 | --> $DIR/defaults-unsound-62211-1.rs:20:18 | |
58 | | | |
59 | LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self; | |
60 | | ^^^^ required by this bound in `UncheckedCopy::Output` | |
29967ef6 | 61 | help: consider further restricting `Self` |
74b04a01 | 62 | | |
29967ef6 | 63 | LL | trait UncheckedCopy: Sized + Copy { |
94222f64 | 64 | | ++++++ |
74b04a01 | 65 | |
29967ef6 | 66 | error: aborting due to 4 previous errors |
74b04a01 XL |
67 | |
68 | For more information about this error, try `rustc --explain E0277`. |