]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-unused-type-param.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / variance / variance-unused-type-param.stderr
1 error[E0392]: parameter `A` is never used
2   --> $DIR/variance-unused-type-param.rs:6:19
3    |
4 LL | struct SomeStruct<A> { x: u32 }
5    |                   ^ unused type parameter
6    |
7    = help: consider removing `A` or using a marker such as `std::marker::PhantomData`
8
9 error[E0392]: parameter `A` is never used
10   --> $DIR/variance-unused-type-param.rs:9:15
11    |
12 LL | enum SomeEnum<A> { Nothing }
13    |               ^ unused type parameter
14    |
15    = help: consider removing `A` or using a marker such as `std::marker::PhantomData`
16
17 error[E0392]: parameter `T` is never used
18   --> $DIR/variance-unused-type-param.rs:13:15
19    |
20 LL | enum ListCell<T> {
21    |               ^ unused type parameter
22    |
23    = help: consider removing `T` or using a marker such as `std::marker::PhantomData`
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0392`.