summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-5844.rs
blob: 4f90a9c66451f1825be4cc510a8f61a93e8aaad9 (plain)
1
2
3
4
5
6
7
8
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
}