]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/unsafe-foreign-mod-2.rs
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[rust.git] / src / test / ui / parser / unsafe-foreign-mod-2.rs
1 extern "C" unsafe {
2                //~^ ERROR expected `{`, found keyword `unsafe`
3                //~| ERROR extern block cannot be declared unsafe
4     unsafe fn foo();
5         //~^ ERROR functions in `extern` blocks cannot have qualifiers
6 }
7
8 fn main() {}