Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
coroutine
/
issue-45729-unsafe-in-coroutine.rs
blob: 7961b58597c4a68ef70ac1ad4f9b8d21bacdcd47 [
file
] [
log
] [
blame
]
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
#![
feature
(
coroutines
)]
fn
main
()
{
let
_
=
||
{
*(
1
as
*
mut
u32
)
=
42
;
//~^ ERROR dereference of raw pointer is unsafe
yield
;
};
}