Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
issues
/
issue-3080.rs
blob: 2b5269dda8fa6b05ef0b156e46f41bf993f056c7 [
file
] [
log
] [
blame
]
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
struct
X
(());
impl
X
{
pub
unsafe
fn
with
(&
self
)
{
}
}
fn
main
()
{
X
(()).
with
();
//~ ERROR requires unsafe function or block
}