]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / 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 }