Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
inline-const
/
expr-unsafe-err.rs
blob: adf05d352ea70c0f5f9602d965a5788e91601df1 [
file
] [
log
] [
blame
]
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
#![
feature
(
inline_const
)]
const
unsafe
fn
require_unsafe
()
->
usize
{
1
}
fn
main
()
{
const
{
require_unsafe
();
//~^ ERROR [E0133]
}
}