]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/thread-local-syntax.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / ui / threads-sendsync / thread-local-syntax.rs
1 // run-pass
2 #![deny(missing_docs)]
3 //! this tests the syntax of `thread_local!`
4
5 mod foo {
6     mod bar {
7         thread_local! {
8             // no docs
9             #[allow(unused)]
10             static FOO: i32 = 42;
11             /// docs
12             pub static BAR: String = String::from("bar");
13
14             // look at these restrictions!!
15             pub(crate) static BAZ: usize = 0;
16             pub(in foo) static QUUX: usize = 0;
17         }
18         thread_local!(static SPLOK: u32 = 0);
19     }
20 }
21
22 fn main() {}