|
| 1 | +error[E0109]: type and const arguments are not allowed on const parameter `START` |
| 2 | + --> $DIR/bad_const_generics_args_on_const_param.rs:5:44 |
| 3 | + | |
| 4 | +LL | std::pat::pattern_type!(u32 is START::<(), i32, 2>..=END::<_, Assoc = ()>); |
| 5 | + | ----- ^^ ^^^ ^ type and const arguments not allowed |
| 6 | + | | |
| 7 | + | not allowed on const parameter `START` |
| 8 | + | |
| 9 | +note: const parameter `START` defined here |
| 10 | + --> $DIR/bad_const_generics_args_on_const_param.rs:4:16 |
| 11 | + | |
| 12 | +LL | type Pat<const START: u32, const END: u32> = |
| 13 | + | ^^^^^ |
| 14 | + |
| 15 | +error[E0109]: type arguments are not allowed on const parameter `END` |
| 16 | + --> $DIR/bad_const_generics_args_on_const_param.rs:5:64 |
| 17 | + | |
| 18 | +LL | std::pat::pattern_type!(u32 is START::<(), i32, 2>..=END::<_, Assoc = ()>); |
| 19 | + | --- ^ type argument not allowed |
| 20 | + | | |
| 21 | + | not allowed on const parameter `END` |
| 22 | + | |
| 23 | +note: const parameter `END` defined here |
| 24 | + --> $DIR/bad_const_generics_args_on_const_param.rs:4:34 |
| 25 | + | |
| 26 | +LL | type Pat<const START: u32, const END: u32> = |
| 27 | + | ^^^ |
| 28 | + |
| 29 | +error[E0229]: associated type bindings are not allowed here |
| 30 | + --> $DIR/bad_const_generics_args_on_const_param.rs:5:67 |
| 31 | + | |
| 32 | +LL | std::pat::pattern_type!(u32 is START::<(), i32, 2>..=END::<_, Assoc = ()>); |
| 33 | + | ^^^^^^^^^^ associated type not allowed here |
| 34 | + |
| 35 | +error: aborting due to 3 previous errors |
| 36 | + |
| 37 | +Some errors have detailed explanations: E0109, E0229. |
| 38 | +For more information about an error, try `rustc --explain E0109`. |
0 commit comments