1error[E0573]: expected type, found variant `CompileFlag::A` 2 --> $DIR/invalid-enum.rs:21:12 3 | 4LL | test_1::<CompileFlag::A>(); 5 | ^^^^^^^^^^^^^^ 6 | | 7 | not a type 8 | help: try using the variant's enum: `CompileFlag` 9 10error[E0573]: expected type, found variant `CompileFlag::A` 11 --> $DIR/invalid-enum.rs:25:15 12 | 13LL | test_2::<_, CompileFlag::A>(0); 14 | ^^^^^^^^^^^^^^ 15 | | 16 | not a type 17 | help: try using the variant's enum: `CompileFlag` 18 19error[E0573]: expected type, found variant `CompileFlag::A` 20 --> $DIR/invalid-enum.rs:29:18 21 | 22LL | let _: Example<CompileFlag::A, _> = Example { x: 0 }; 23 | ^^^^^^^^^^^^^^ 24 | | 25 | not a type 26 | help: try using the variant's enum: `CompileFlag` 27 28error[E0747]: unresolved item provided when a constant was expected 29 --> $DIR/invalid-enum.rs:29:18 30 | 31LL | let _: Example<CompileFlag::A, _> = Example { x: 0 }; 32 | ^^^^^^^^^^^^^^ 33 | 34help: if this generic argument was intended as a const parameter, surround it with braces 35 | 36LL | let _: Example<{ CompileFlag::A }, _> = Example { x: 0 }; 37 | + + 38 39error[E0747]: type provided when a constant was expected 40 --> $DIR/invalid-enum.rs:33:18 41 | 42LL | let _: Example<Example::ASSOC_FLAG, _> = Example { x: 0 }; 43 | ^^^^^^^^^^^^^^^^^^^ 44 | 45help: if this generic argument was intended as a const parameter, surround it with braces 46 | 47LL | let _: Example<{ Example::ASSOC_FLAG }, _> = Example { x: 0 }; 48 | + + 49 50error[E0747]: unresolved item provided when a constant was expected 51 --> $DIR/invalid-enum.rs:21:12 52 | 53LL | test_1::<CompileFlag::A>(); 54 | ^^^^^^^^^^^^^^ 55 | 56help: if this generic argument was intended as a const parameter, surround it with braces 57 | 58LL | test_1::<{ CompileFlag::A }>(); 59 | + + 60 61error[E0747]: unresolved item provided when a constant was expected 62 --> $DIR/invalid-enum.rs:25:15 63 | 64LL | test_2::<_, CompileFlag::A>(0); 65 | ^^^^^^^^^^^^^^ 66 | 67help: if this generic argument was intended as a const parameter, surround it with braces 68 | 69LL | test_2::<_, { CompileFlag::A }>(0); 70 | + + 71 72error: aborting due to 7 previous errors 73 74Some errors have detailed explanations: E0573, E0747. 75For more information about an error, try `rustc --explain E0573`. 76