1 error[E0277]: the trait bound `Self: Copy` is not satisfied
2 --> $DIR/defaults-unsound-62211-2.rs:21:18
4 LL | trait UncheckedCopy: Sized {
5 | -------------------------- required by `UncheckedCopy`
8 | ^^^^ the trait `Copy` is not implemented for `Self`
10 help: consider further restricting `Self`
12 LL | trait UncheckedCopy: Sized + Copy {
15 error[E0277]: cannot add-assign `&'static str` to `Self`
16 --> $DIR/defaults-unsound-62211-2.rs:25:7
18 LL | trait UncheckedCopy: Sized {
19 | -------------------------- required by `UncheckedCopy`
21 LL | + AddAssign<&'static str>
22 | ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Self += &'static str`
24 help: consider further restricting `Self`
26 LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^
29 error[E0277]: the trait bound `Self: Deref` is not satisfied
30 --> $DIR/defaults-unsound-62211-2.rs:23:7
32 LL | trait UncheckedCopy: Sized {
33 | -------------------------- required by `UncheckedCopy`
35 LL | + Deref<Target = str>
36 | ^^^^^^^^^^^^^^^^^^^ the trait `Deref` is not implemented for `Self`
38 help: consider further restricting `Self`
40 LL | trait UncheckedCopy: Sized + Deref {
43 error[E0277]: `Self` doesn't implement `std::fmt::Display`
44 --> $DIR/defaults-unsound-62211-2.rs:28:7
46 LL | trait UncheckedCopy: Sized {
47 | -------------------------- required by `UncheckedCopy`
49 LL | + Display = Self;
50 | ^^^^^^^ `Self` cannot be formatted with the default formatter
52 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
53 help: consider further restricting `Self`
55 LL | trait UncheckedCopy: Sized + std::fmt::Display {
58 error[E0277]: `T` doesn't implement `std::fmt::Display`
59 --> $DIR/defaults-unsound-62211-2.rs:41:9
61 LL | trait UncheckedCopy: Sized {
62 | ------------- required by a bound in this
64 LL | + Display = Self;
65 | ------- required by this bound in `UncheckedCopy`
67 LL | impl<T> UncheckedCopy for T {}
68 | ^^^^^^^^^^^^^ `T` cannot be formatted with the default formatter
70 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
71 help: consider restricting type parameter `T`
73 LL | impl<T: std::fmt::Display> UncheckedCopy for T {}
76 error[E0277]: the trait bound `T: Deref` is not satisfied
77 --> $DIR/defaults-unsound-62211-2.rs:41:9
79 LL | trait UncheckedCopy: Sized {
80 | ------------- required by a bound in this
82 LL | + Deref<Target = str>
83 | ------------------- required by this bound in `UncheckedCopy`
85 LL | impl<T> UncheckedCopy for T {}
86 | ^^^^^^^^^^^^^ the trait `Deref` is not implemented for `T`
88 help: consider restricting type parameter `T`
90 LL | impl<T: Deref> UncheckedCopy for T {}
93 error[E0277]: cannot add-assign `&'static str` to `T`
94 --> $DIR/defaults-unsound-62211-2.rs:41:9
96 LL | trait UncheckedCopy: Sized {
97 | ------------- required by a bound in this
99 LL | + AddAssign<&'static str>
100 | ----------------------- required by this bound in `UncheckedCopy`
102 LL | impl<T> UncheckedCopy for T {}
103 | ^^^^^^^^^^^^^ no implementation for `T += &'static str`
105 help: consider restricting type parameter `T`
107 LL | impl<T: AddAssign<&'static str>> UncheckedCopy for T {}
108 | ^^^^^^^^^^^^^^^^^^^^^^^^^
110 error[E0277]: the trait bound `T: Copy` is not satisfied
111 --> $DIR/defaults-unsound-62211-2.rs:41:9
113 LL | trait UncheckedCopy: Sized {
114 | ------------- required by a bound in this
116 LL | type Output: Copy
117 | ---- required by this bound in `UncheckedCopy`
119 LL | impl<T> UncheckedCopy for T {}
120 | ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
122 help: consider restricting type parameter `T`
124 LL | impl<T: Copy> UncheckedCopy for T {}
127 error: aborting due to 8 previous errors
129 For more information about this error, try `rustc --explain E0277`.