summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/effective_visibilities_invariants.rs
blob: af5a2bed6ab24bef151797620a69b587817d29ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Invariant checking doesn't ICE in some cases with errors (issue #104249).

#![feature(staged_api)] //~ ERROR module has missing stability attribute

pub mod m {} //~ ERROR module has missing stability attribute

pub mod m { //~ ERROR the name `m` is defined multiple times
    mod inner {}
    type Inner = u8;
}

fn main() {}