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