]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-unused-type-param.stderr
Rollup merge of #93389 - cameron1024:issue-90847-regression, r=Mark-Simulacrum
[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 parameter
6    |
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
9
10 error[E0392]: parameter `A` is never used
11   --> $DIR/variance-unused-type-param.rs:9:15
12    |
13 LL | enum SomeEnum<A> { Nothing }
14    |               ^ unused parameter
15    |
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
18
19 error[E0392]: parameter `T` is never used
20   --> $DIR/variance-unused-type-param.rs:13:15
21    |
22 LL | enum ListCell<T> {
23    |               ^ unused parameter
24    |
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
27
28 error[E0392]: parameter `T` is never used
29   --> $DIR/variance-unused-type-param.rs:19:19
30    |
31 LL | struct WithBounds<T: Sized> {}
32    |                   ^ unused parameter
33    |
34    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
35
36 error[E0392]: parameter `T` is never used
37   --> $DIR/variance-unused-type-param.rs:22:24
38    |
39 LL | struct WithWhereBounds<T> where T: Sized {}
40    |                        ^ unused parameter
41    |
42    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
43
44 error[E0392]: parameter `T` is never used
45   --> $DIR/variance-unused-type-param.rs:25:27
46    |
47 LL | struct WithOutlivesBounds<T: 'static> {}
48    |                           ^ unused parameter
49    |
50    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
51
52 error: aborting due to 6 previous errors
53
54 For more information about this error, try `rustc --explain E0392`.