-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)
Description
#![feature(min_const_fn, const_panic)]
const fn foo() {
panic!("")
}
fn main() {
let _: &'static () = &foo();
}causes an illegal hardware instruction. cc @oli-obk
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)