aboutsummaryrefslogtreecommitdiff
path: root/lazy-static/compiletest/tests/compile-fail/incorrect_visibility_restriction.rs
blob: 360e23d129bd9a89392432fefa1d74556785dae1 (plain)
1
2
3
4
5
6
7
8
9
10
// incorrect visibility restriction
#[macro_use]
extern crate lazy_static_compiletest as lazy_static;

lazy_static! {
    pub(nonsense) static ref WRONG: () = ();
    //~^ ERROR incorrect visibility restriction
}

fn main() { }