1 error[E0573]: expected type, found variant `CompileFlag::A`
2 --> $DIR/invalid-enum.rs:21:12
4 LL | test_1::<CompileFlag::A>();
8 | help: try using the variant's enum: `CompileFlag`
10 error[E0573]: expected type, found variant `CompileFlag::A`
11 --> $DIR/invalid-enum.rs:25:15
13 LL | test_2::<_, CompileFlag::A>(0);
17 | help: try using the variant's enum: `CompileFlag`
19 error[E0573]: expected type, found variant `CompileFlag::A`
20 --> $DIR/invalid-enum.rs:29:18
22 LL | let _: Example<CompileFlag::A, _> = Example { x: 0 };
26 | help: try using the variant's enum: `CompileFlag`
28 error[E0747]: unresolved item provided when a constant was expected
29 --> $DIR/invalid-enum.rs:29:18
31 LL | let _: Example<CompileFlag::A, _> = Example { x: 0 };
34 help: if this generic argument was intended as a const parameter, surround it with braces
36 LL | let _: Example<{ CompileFlag::A }, _> = Example { x: 0 };
39 error[E0747]: type provided when a constant was expected
40 --> $DIR/invalid-enum.rs:33:18
42 LL | let _: Example<Example::ASSOC_FLAG, _> = Example { x: 0 };
45 help: if this generic argument was intended as a const parameter, surround it with braces
47 LL | let _: Example<{ Example::ASSOC_FLAG }, _> = Example { x: 0 };
50 error[E0747]: unresolved item provided when a constant was expected
51 --> $DIR/invalid-enum.rs:21:12
53 LL | test_1::<CompileFlag::A>();
56 help: if this generic argument was intended as a const parameter, surround it with braces
58 LL | test_1::<{ CompileFlag::A }>();
61 error[E0747]: unresolved item provided when a constant was expected
62 --> $DIR/invalid-enum.rs:25:15
64 LL | test_2::<_, CompileFlag::A>(0);
67 help: if this generic argument was intended as a const parameter, surround it with braces
69 LL | test_2::<_, { CompileFlag::A }>(0);
72 error: aborting due to 7 previous errors
74 Some errors have detailed explanations: E0573, E0747.
75 For more information about an error, try `rustc --explain E0573`.