about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0374.stderr
blob: 95e6b95e0d56bf30f3081235d3b507e526cb4e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0392]: type parameter `T` is never used
  --> $DIR/E0374.rs:4:12
   |
LL | struct Foo<T: ?Sized> {
   |            ^ unused type parameter
   |
   = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`

error[E0374]: implementing `CoerceUnsized` requires a field to be coerced
  --> $DIR/E0374.rs:8:1
   |
LL | / impl<T, U> CoerceUnsized<Foo<U>> for Foo<T>
LL | |     where T: CoerceUnsized<U> {}
   | |_____________________________^
   |
   = note: expected a single field to be coerced, none found

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0374, E0392.
For more information about an error, try `rustc --explain E0374`.