]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[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 }