]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[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 }