]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/defaults-unsound-62211-2.stderr
Fix rebase damage
[rust.git] / src / test / ui / associated-types / defaults-unsound-62211-2.stderr
1 error[E0277]: the trait bound `Self: std::marker::Copy` is not satisfied
2   --> $DIR/defaults-unsound-62211-2.rs:23:18
3    |
4 LL | trait UncheckedCopy: Sized {
5    | -------------------------- required by `UncheckedCopy`
6 ...
7 LL |     type Output: Copy
8    |                  ^^^^ the trait `std::marker::Copy` is not implemented for `Self`
9
10 error[E0277]: cannot add-assign `&'static str` to `Self`
11   --> $DIR/defaults-unsound-62211-2.rs:27:7
12    |
13 LL | trait UncheckedCopy: Sized {
14    | -------------------------- required by `UncheckedCopy`
15 ...
16 LL |     + AddAssign<&'static str>
17    |       ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Self += &'static str`
18    |
19    = help: the trait `std::ops::AddAssign<&'static str>` is not implemented for `Self`
20
21 error[E0277]: the trait bound `Self: std::ops::Deref` is not satisfied
22   --> $DIR/defaults-unsound-62211-2.rs:25:7
23    |
24 LL | trait UncheckedCopy: Sized {
25    | -------------------------- required by `UncheckedCopy`
26 ...
27 LL |     + Deref<Target = str>
28    |       ^^^^^^^^^^^^^^^^^^^ the trait `std::ops::Deref` is not implemented for `Self`
29
30 error[E0277]: `Self` doesn't implement `std::fmt::Display`
31   --> $DIR/defaults-unsound-62211-2.rs:30:7
32    |
33 LL | trait UncheckedCopy: Sized {
34    | -------------------------- required by `UncheckedCopy`
35 ...
36 LL |     + Display = Self;
37    |       ^^^^^^^ `Self` cannot be formatted with the default formatter
38    |
39    = help: the trait `std::fmt::Display` is not implemented for `Self`
40    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
41
42 error[E0277]: `T` doesn't implement `std::fmt::Display`
43   --> $DIR/defaults-unsound-62211-2.rs:43:9
44    |
45 LL | impl<T> UncheckedCopy for T {}
46    |      -  ^^^^^^^^^^^^^ `T` cannot be formatted with the default formatter
47    |      |
48    |      help: consider restricting this bound: `T: std::fmt::Display`
49    |
50    = help: the trait `std::fmt::Display` is not implemented for `T`
51    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
52
53 error[E0277]: the trait bound `T: std::ops::Deref` is not satisfied
54   --> $DIR/defaults-unsound-62211-2.rs:43:9
55    |
56 LL | impl<T> UncheckedCopy for T {}
57    |      -  ^^^^^^^^^^^^^ the trait `std::ops::Deref` is not implemented for `T`
58    |      |
59    |      help: consider restricting this bound: `T: std::ops::Deref`
60
61 error[E0277]: cannot add-assign `&'static str` to `T`
62   --> $DIR/defaults-unsound-62211-2.rs:43:9
63    |
64 LL | impl<T> UncheckedCopy for T {}
65    |      -  ^^^^^^^^^^^^^ no implementation for `T += &'static str`
66    |      |
67    |      help: consider restricting this bound: `T: std::ops::AddAssign<&'static str>`
68    |
69    = help: the trait `std::ops::AddAssign<&'static str>` is not implemented for `T`
70
71 error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
72   --> $DIR/defaults-unsound-62211-2.rs:43:9
73    |
74 LL | impl<T> UncheckedCopy for T {}
75    |      -  ^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
76    |      |
77    |      help: consider restricting this bound: `T: std::marker::Copy`
78
79 error: aborting due to 8 previous errors
80
81 For more information about this error, try `rustc --explain E0277`.