diff options
Diffstat (limited to 'src/test/ui/generator/issue-45729-unsafe-in-generator.rs')
-rw-r--r-- | src/test/ui/generator/issue-45729-unsafe-in-generator.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/generator/issue-45729-unsafe-in-generator.rs b/src/test/ui/generator/issue-45729-unsafe-in-generator.rs deleted file mode 100644 index 379c36d2c..000000000 --- a/src/test/ui/generator/issue-45729-unsafe-in-generator.rs +++ /dev/null @@ -1,12 +0,0 @@ -// revisions: mir thir -// [thir]compile-flags: -Z thir-unsafeck - -#![feature(generators)] - -fn main() { - let _ = || { - *(1 as *mut u32) = 42; - //~^ ERROR dereference of raw pointer is unsafe - yield; - }; -} |