]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/generic_arg_infer/infer-arg-test.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / const-generics / generic_arg_infer / infer-arg-test.stderr
1 error: expected identifier, found reserved identifier `_`
2   --> $DIR/infer-arg-test.rs:7:17
3    |
4 LL | struct BadInfer<_>;
5    |                 ^ expected identifier, found reserved identifier
6
7 error: expected identifier, found reserved identifier `_`
8   --> $DIR/infer-arg-test.rs:13:17
9    |
10 LL | fn bad_infer_fn<_>() {}
11    |                 ^ expected identifier, found reserved identifier
12
13 error[E0392]: parameter `_` is never used
14   --> $DIR/infer-arg-test.rs:7:17
15    |
16 LL | struct BadInfer<_>;
17    |                 ^ unused parameter
18    |
19    = help: consider removing `_`, referring to it in a field, or using a marker such as `PhantomData`
20    = help: if you intended `_` to be a const parameter, use `const _: usize` instead
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0392`.