| error[E0080]: evaluation panicked: explicit panic | |
| --> $DIR/zero_param_diverging_consts.rs:11:14 | |
| | | |
| LL | fn ex_nihilo<const N: usize>() -> u32 { | |
| LL | [const { panic!() } as !; N]; | |
| | ^^^^^^^^ evaluation of `ex_nihilo::<0>::{constant#0}` failed here | |
| note: erroneous constant encountered | |
| --> $DIR/zero_param_diverging_consts.rs:11:6 | |
| | | |
| LL | [const { panic!() } as !; N]; | |
| | ^^^^^^^^^^^^^^^^^^ | |
| note: the above error was encountered while instantiating `fn ex_nihilo::<0>` | |
| --> $DIR/zero_param_diverging_consts.rs:16:10 | |
| | | |
| LL | dbg!(ex_nihilo::<0>()); | |
| | ^^^^^^^^^^^^^^^^ | |
| error: aborting due to 1 previous error | |
| For more information about this error, try `rustc --explain E0080`. |