diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-5844.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-5844.rs b/src/test/ui/issues/issue-5844.rs new file mode 100644 index 000000000..4f90a9c66 --- /dev/null +++ b/src/test/ui/issues/issue-5844.rs @@ -0,0 +1,9 @@ +//aux-build:issue-5844-aux.rs +// revisions: mir thir +// [thir]compile-flags: -Z thir-unsafeck + +extern crate issue_5844_aux; + +fn main () { + issue_5844_aux::rand(); //~ ERROR: requires unsafe +} |