1 error: expected identifier, found reserved identifier `_`
2 --> $DIR/infer-arg-test.rs:7:17
4 LL | struct BadInfer<_>;
5 | ^ expected identifier, found reserved identifier
7 error: expected identifier, found reserved identifier `_`
8 --> $DIR/infer-arg-test.rs:13:17
10 LL | fn bad_infer_fn<_>() {}
11 | ^ expected identifier, found reserved identifier
13 error: in expressions, `_` can only be used on the left-hand side of an assignment
14 --> $DIR/infer-arg-test.rs:20:15
17 | ^ `_` not allowed here
19 error: in expressions, `_` can only be used on the left-hand side of an assignment
20 --> $DIR/infer-arg-test.rs:22:25
22 LL | let v: [u8; 10] = [0; _];
23 | ^ `_` not allowed here
25 error[E0392]: parameter `_` is never used
26 --> $DIR/infer-arg-test.rs:7:17
28 LL | struct BadInfer<_>;
31 = help: consider removing `_`, referring to it in a field, or using a marker such as `PhantomData`
32 = help: if you intended `_` to be a const parameter, use `const _: usize` instead
34 error: aborting due to 5 previous errors
36 For more information about this error, try `rustc --explain E0392`.