summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/unsafe-foreign-mod-2.rs
blob: 77856fb67340e20de3eb20d765396eec130f591c (plain)
1
2
3
4
5
6
7
8
extern "C" unsafe {
               //~^ ERROR expected `{`, found keyword `unsafe`
               //~| ERROR extern block cannot be declared unsafe
    unsafe fn foo();
        //~^ ERROR functions in `extern` blocks cannot have qualifiers
}

fn main() {}