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