]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / ui / borrowck / borrowck-thread-local-static-borrow-outlives-fn.rs
1 #![feature(thread_local)]
2
3 #[thread_local]
4 static FOO: u8 = 3;
5
6 fn assert_static(_t: &'static u8) {}
7 fn main() {
8      assert_static(&FOO); //~ ERROR [E0712]
9 }