Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
inline-const
/
required-const.rs
blob: 0483410662bfd1f58a323b6f03f6065eacb24333 [
file
] [
log
] [
blame
]
// build-fail
// compile-flags: -Zmir-opt-level=3
#![
feature
(
inline_const
)]
fn
foo
<
T
>()
{
if
false
{
const
{
panic
!()
}
//~ ERROR E0080
}
}
fn
main
()
{
foo
::<
i32
>();
}