summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unsafe-mod.rs
blob: 7916d878ea585e15c9de003ccc0e4e0f55a9dab4 (plain)
1
2
3
4
5
6
7
8
9
unsafe mod m {
    //~^ ERROR module cannot be declared unsafe
}

unsafe mod n;
//~^ ERROR module cannot be declared unsafe
//~^^ ERROR file not found for module `n`

fn main() {}