1 // Check that #[thread_local] attribute is rejected on non-static items.
2 #![feature(thread_local)]
5 //~^ ERROR attribute should be applied to a static
9 //~^ ERROR attribute should be applied to a static
11 #[thread_local] || {};
12 //~^ ERROR attribute should be applied to a static
17 //~^ ERROR attribute should be applied to a static
28 // Foreign static. OK.