1 error[E0392]: parameter `A` is never used
2 --> $DIR/variance-unused-type-param.rs:6:19
4 LL | struct SomeStruct<A> { x: u32 }
7 = help: consider removing `A`, referring to it in a field, or using a marker such as `PhantomData`
8 = help: if you intended `A` to be a const parameter, use `const A: usize` instead
10 error[E0392]: parameter `A` is never used
11 --> $DIR/variance-unused-type-param.rs:9:15
13 LL | enum SomeEnum<A> { Nothing }
16 = help: consider removing `A`, referring to it in a field, or using a marker such as `PhantomData`
17 = help: if you intended `A` to be a const parameter, use `const A: usize` instead
19 error[E0392]: parameter `T` is never used
20 --> $DIR/variance-unused-type-param.rs:13:15
22 LL | enum ListCell<T> {
25 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
26 = help: if you intended `T` to be a const parameter, use `const T: usize` instead
28 error[E0392]: parameter `T` is never used
29 --> $DIR/variance-unused-type-param.rs:19:19
31 LL | struct WithBounds<T: Sized> {}
34 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
36 error[E0392]: parameter `T` is never used
37 --> $DIR/variance-unused-type-param.rs:22:24
39 LL | struct WithWhereBounds<T> where T: Sized {}
42 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
44 error[E0392]: parameter `T` is never used
45 --> $DIR/variance-unused-type-param.rs:25:27
47 LL | struct WithOutlivesBounds<T: 'static> {}
50 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
52 error: aborting due to 6 previous errors
54 For more information about this error, try `rustc --explain E0392`.