@@ -9,7 +9,7 @@ note: required because of the requirements on the impl of `Gettable<T>` for `S<T
9
9
|
10
10
LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
11
11
| ^^^^^^^^^^^ ^^^^
12
- = note: required for the cast to the object type `dyn Gettable<T>`
12
+ = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
13
13
help: consider restricting type parameter `T`
14
14
|
15
15
LL | fn f<T: std::marker::Send>(val: T) {
@@ -26,7 +26,7 @@ note: required because of the requirements on the impl of `Gettable<T>` for `S<T
26
26
|
27
27
LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
28
28
| ^^^^^^^^^^^ ^^^^
29
- = note: required for the cast to the object type `dyn Gettable<T>`
29
+ = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
30
30
help: consider restricting type parameter `T`
31
31
|
32
32
LL | fn f<T: std::marker::Copy>(val: T) {
@@ -43,7 +43,7 @@ note: required because of the requirements on the impl of `Gettable<T>` for `S<T
43
43
|
44
44
LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
45
45
| ^^^^^^^^^^^ ^^^^
46
- = note: required for the cast to the object type `dyn Gettable<T>`
46
+ = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
47
47
help: consider restricting type parameter `T`
48
48
|
49
49
LL | fn g<T: std::marker::Send>(val: T) {
@@ -60,7 +60,7 @@ note: required because of the requirements on the impl of `Gettable<T>` for `S<T
60
60
|
61
61
LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
62
62
| ^^^^^^^^^^^ ^^^^
63
- = note: required for the cast to the object type `dyn Gettable<T>`
63
+ = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
64
64
help: consider restricting type parameter `T`
65
65
|
66
66
LL | fn g<T: std::marker::Copy>(val: T) {
@@ -78,7 +78,7 @@ note: required because of the requirements on the impl of `Gettable<String>` for
78
78
|
79
79
LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
80
80
| ^^^^^^^^^^^ ^^^^
81
- = note: required for the cast to the object type `dyn Gettable<String>`
81
+ = note: required for the cast from `S<String>` to the object type `dyn Gettable<String>`
82
82
83
83
error[E0277]: the trait bound `Foo: Copy` is not satisfied
84
84
--> $DIR/kindck-impl-type-params.rs:43:37
@@ -92,7 +92,7 @@ note: required because of the requirements on the impl of `Gettable<Foo>` for `S
92
92
|
93
93
LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
94
94
| ^^^^^^^^^^^ ^^^^
95
- = note: required for the cast to the object type `dyn Gettable<Foo>`
95
+ = note: required for the cast from `S<Foo>` to the object type `dyn Gettable<Foo>`
96
96
help: consider annotating `Foo` with `#[derive(Copy)]`
97
97
|
98
98
LL | #[derive(Copy)]
0 commit comments