]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/defaults-unsound-62211-1.stderr
New upstream version 1.56.0~beta.4+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 4LL | 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
8note: required by a bound in `UncheckedCopy::Output`
9 --> $DIR/defaults-unsound-62211-1.rs:20:86
10 |
11LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
12 | ^^^^^^^ required by this bound in `UncheckedCopy::Output`
f9f354fc
XL
13help: consider further restricting `Self`
14 |
29967ef6 15LL | trait UncheckedCopy: Sized + std::fmt::Display {
94222f64 16 | +++++++++++++++++++
74b04a01 17
29967ef6
XL
18error[E0277]: cannot add-assign `&'static str` to `Self`
19 --> $DIR/defaults-unsound-62211-1.rs:20:5
74b04a01 20 |
29967ef6 21LL | 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
24note: required by a bound in `UncheckedCopy::Output`
25 --> $DIR/defaults-unsound-62211-1.rs:20:47
26 |
27LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
28 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
f9f354fc
XL
29help: consider further restricting `Self`
30 |
29967ef6 31LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
94222f64 32 | +++++++++++++++++++++++++
74b04a01 33
6a06907d
XL
34error[E0277]: the trait bound `Self: Deref` is not satisfied
35 --> $DIR/defaults-unsound-62211-1.rs:20:5
36 |
37LL | 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
40note: required by a bound in `UncheckedCopy::Output`
41 --> $DIR/defaults-unsound-62211-1.rs:20:25
42 |
43LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
44 | ^^^^^^^^^^^^^^^^^^^ required by this bound in `UncheckedCopy::Output`
6a06907d
XL
45help: consider further restricting `Self`
46 |
47LL | trait UncheckedCopy: Sized + Deref {
94222f64 48 | +++++++
6a06907d 49
29967ef6
XL
50error[E0277]: the trait bound `Self: Copy` is not satisfied
51 --> $DIR/defaults-unsound-62211-1.rs:20:5
74b04a01 52 |
29967ef6 53LL | 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
56note: required by a bound in `UncheckedCopy::Output`
57 --> $DIR/defaults-unsound-62211-1.rs:20:18
58 |
59LL | type Output: Copy + Deref<Target = str> + AddAssign<&'static str> + From<Self> + Display = Self;
60 | ^^^^ required by this bound in `UncheckedCopy::Output`
29967ef6 61help: consider further restricting `Self`
74b04a01 62 |
29967ef6 63LL | trait UncheckedCopy: Sized + Copy {
94222f64 64 | ++++++
74b04a01 65
29967ef6 66error: aborting due to 4 previous errors
74b04a01
XL
67
68For more information about this error, try `rustc --explain E0277`.