blob: e050a95bd00cd83f37fbccf0f6cee6b755907071 [file]
error[E0080]: evaluation panicked: explicit panic
--> $DIR/required-const.rs:6:17
|
LL | fn foo<T>() {
LL | if false {
LL | const { panic!() }
| ^^^^^^^^ evaluation of `foo::<i32>::{constant#0}` failed here
note: erroneous constant encountered
--> $DIR/required-const.rs:6:9
|
LL | const { panic!() }
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.