summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/static.rs
blob: 90dafd8b3480d4a17f891f07357d165f5010f60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: --document-private-items

#![crate_type = "lib"]

// @has static/static.FOO.html '//pre' 'static FOO: usize'
static FOO: usize = 1;

// @has static/static.BAR.html '//pre' 'pub static BAR: usize'
pub static BAR: usize = 1;

// @has static/static.BAZ.html '//pre' 'pub static mut BAZ: usize'
pub static mut BAZ: usize = 1;