rust/tests/ui/issues/issue-5844.rs
2023-01-11 09:32:08 +00:00

10 lines
195 B
Rust

//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
}