1 error: invalid const generic expression
2 --> $DIR/bad-const-generic-exprs.rs:4:16
4 LL | let _: Wow<if true {}>;
7 help: expressions must be enclosed in braces to be used as const generic arguments
9 LL | let _: Wow<{ if true {} }>;
12 error: invalid const generic expression
13 --> $DIR/bad-const-generic-exprs.rs:7:16
15 LL | let _: Wow<|| ()>;
18 help: expressions must be enclosed in braces to be used as const generic arguments
20 LL | let _: Wow<{ || () }>;
23 error: expected one of `,` or `>`, found `.`
24 --> $DIR/bad-const-generic-exprs.rs:10:17
27 | ^ expected one of `,` or `>`
29 help: expressions must be enclosed in braces to be used as const generic arguments
31 LL | let _: Wow<{ A.b }>;
34 error: expected one of `,` or `>`, found `.`
35 --> $DIR/bad-const-generic-exprs.rs:13:17
38 | ^ expected one of `,` or `>`
40 help: expressions must be enclosed in braces to be used as const generic arguments
42 LL | let _: Wow<{ A.0 }>;
45 error: expected type, found `12`
46 --> $DIR/bad-const-generic-exprs.rs:19:17
48 LL | let _: Wow<[12]>;
51 error[E0747]: type provided when a constant was expected
52 --> $DIR/bad-const-generic-exprs.rs:19:16
54 LL | let _: Wow<[12]>;
57 error: aborting due to 6 previous errors
59 For more information about this error, try `rustc --explain E0747`.