]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/unused-type-param-suggestion.stderr
Auto merge of #106825 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / ui / const-generics / unused-type-param-suggestion.stderr
1 error[E0392]: parameter `N` is never used
2   --> $DIR/unused-type-param-suggestion.rs:3:16
3    |
4 LL | struct Example<N>;
5    |                ^ unused parameter
6    |
7    = help: consider removing `N`, referring to it in a field, or using a marker such as `PhantomData`
8    = help: if you intended `N` to be a const parameter, use `const N: usize` instead
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0392`.