]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/unsafe-foreign-mod-2.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / 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() {}