]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/defaults-unsound-62211-1.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / associated-types / defaults-unsound-62211-1.stderr
CommitLineData
29967ef6
XL
1error[E0277]: `Self` doesn't implement `std::fmt::Display`
2 --> $DIR/defaults-unsound-62211-1.rs:20:5
74b04a01 3 |
29967ef6
XL
4LL | 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
11help: consider further restricting `Self`
12 |
29967ef6
XL
13LL | trait UncheckedCopy: Sized + std::fmt::Display {
14 | ^^^^^^^^^^^^^^^^^^^
74b04a01 15
29967ef6
XL
16error[E0277]: cannot add-assign `&'static str` to `Self`
17 --> $DIR/defaults-unsound-62211-1.rs:20:5
74b04a01 18 |
29967ef6
XL
19LL | 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
25help: consider further restricting `Self`
26 |
29967ef6
XL
27LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^
74b04a01 29
6a06907d
XL
30error[E0277]: the trait bound `Self: Deref` is not satisfied
31 --> $DIR/defaults-unsound-62211-1.rs:20:5
32 |
33LL | 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 |
39help: consider further restricting `Self`
40 |
41LL | trait UncheckedCopy: Sized + Deref {
42 | ^^^^^^^
43
29967ef6
XL
44error[E0277]: the trait bound `Self: Copy` is not satisfied
45 --> $DIR/defaults-unsound-62211-1.rs:20:5
74b04a01 46 |
29967ef6
XL
47LL | 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 53help: consider further restricting `Self`
74b04a01 54 |
29967ef6
XL
55LL | trait UncheckedCopy: Sized + Copy {
56 | ^^^^^^
74b04a01 57
29967ef6 58error: aborting due to 4 previous errors
74b04a01
XL
59
60For more information about this error, try `rustc --explain E0277`.