1A borrow of a thread-local variable was made inside a function which outlived2the lifetime of the function.34Erroneous code example:56```compile_fail,E07127#![feature(thread_local)]89#[thread_local]10static FOO: u8 = 3;1112fn main() {13 let a = &FOO; // error: thread-local variable borrowed past end of function1415 std::thread::spawn(move || {16 println!("{}", a);17 });18}19```
Findings
✓ No findings reported for this file.