about summary refs log tree commit diff
path: root/tests/ui/unsafe/extern-function-requires-unsafe-5844.rs
blob: 11863ce647ae1efaa5f6a2e4c764daaec559d5b6 (plain)
1
2
3
4
5
6
7
8
// https://github.com/rust-lang/rust/issues/5844
//@aux-build:aux-5844.rs

extern crate aux_5844;

fn main() {
    aux_5844::rand(); //~ ERROR: requires unsafe
}