1 error: expected identifier, found reserved identifier `_`
2 --> $DIR/issue-89066.rs:12:17
4 LL | struct BadInfer<_>;
5 | ^ expected identifier, found reserved identifier
7 error: expected identifier, found reserved identifier `_`
8 --> $DIR/issue-89066.rs:18:17
10 LL | fn bad_infer_fn<_>() {}
11 | ^ expected identifier, found reserved identifier
13 error[E0392]: parameter `_` is never used
14 --> $DIR/issue-89066.rs:12:17
16 LL | struct BadInfer<_>;
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
22 error[E0107]: this struct takes 2 generic arguments but 3 generic arguments were supplied
23 --> $DIR/issue-89066.rs:23:10
25 LL | let a: All<_, _, _>;
26 | ^^^ - help: remove this generic argument
28 | expected 2 generic arguments
30 note: struct defined here, with 2 generic parameters: `T`, `N`
31 --> $DIR/issue-89066.rs:8:8
33 LL | struct All<'a, T, const N: usize> {
34 | ^^^ - --------------
36 error: aborting due to 4 previous errors
38 Some errors have detailed explanations: E0107, E0392.
39 For more information about an error, try `rustc --explain E0107`.