Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
inline-const
/
required-const.rs
blob: 8f640e933d0192c6ea55afe5ce5b5b2c5c77df5e [
file
] [
log
] [
blame
]
//@ build-fail
//@ compile-flags: -Zmir-opt-level=3
fn
foo
<
T
>()
{
if
false
{
const
{
panic
!()
}
//~ ERROR E0080
}
}
fn
main
()
{
foo
::<
i32
>();
}