mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
13 lines
223 B
Rust
13 lines
223 B
Rust
//@ build-fail
|
|
//@ compile-flags: -Zmir-opt-level=3
|
|
//@ ignore-parallel-frontend post-monomorphization errors
|
|
fn foo<T>() {
|
|
if false {
|
|
const { panic!() } //~ ERROR E0080
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
foo::<i32>();
|
|
}
|