]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/defaults-unsound-62211-2.stderr
New upstream version 1.43.0+dfsg1
[rustc.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:21: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:25: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:23: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:28: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:41:9
44 |
45 LL | impl<T> UncheckedCopy for T {}
46 | ^^^^^^^^^^^^^ `T` cannot be formatted with the default formatter
47 |
48 = help: the trait `std::fmt::Display` is not implemented for `T`
49 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
50 help: consider restricting this type parameter with `T: std::fmt::Display`
51 --> $DIR/defaults-unsound-62211-2.rs:41:6
52 |
53 LL | impl<T> UncheckedCopy for T {}
54 | ^
55
56 error[E0277]: the trait bound `T: std::ops::Deref` is not satisfied
57 --> $DIR/defaults-unsound-62211-2.rs:41:9
58 |
59 LL | impl<T> UncheckedCopy for T {}
60 | ^^^^^^^^^^^^^ the trait `std::ops::Deref` is not implemented for `T`
61 |
62 help: consider restricting this type parameter with `T: std::ops::Deref`
63 --> $DIR/defaults-unsound-62211-2.rs:41:6
64 |
65 LL | impl<T> UncheckedCopy for T {}
66 | ^
67
68 error[E0277]: cannot add-assign `&'static str` to `T`
69 --> $DIR/defaults-unsound-62211-2.rs:41:9
70 |
71 LL | impl<T> UncheckedCopy for T {}
72 | ^^^^^^^^^^^^^ no implementation for `T += &'static str`
73 |
74 = help: the trait `std::ops::AddAssign<&'static str>` is not implemented for `T`
75 help: consider restricting this type parameter with `T: std::ops::AddAssign<&'static str>`
76 --> $DIR/defaults-unsound-62211-2.rs:41:6
77 |
78 LL | impl<T> UncheckedCopy for T {}
79 | ^
80
81 error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
82 --> $DIR/defaults-unsound-62211-2.rs:41:9
83 |
84 LL | impl<T> UncheckedCopy for T {}
85 | ^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
86 |
87 help: consider restricting this type parameter with `T: std::marker::Copy`
88 --> $DIR/defaults-unsound-62211-2.rs:41:6
89 |
90 LL | impl<T> UncheckedCopy for T {}
91 | ^
92
93 error: aborting due to 8 previous errors
94
95 For more information about this error, try `rustc --explain E0277`.