Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
4b3ece475d6e77465a30c8b53d7e1e9e861e4b79
/
.
/
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]
}
}