1 #![feature(thread_local)]
8 //~^ ERROR thread-local variable borrowed past end of function
9 //~| NOTE thread-local variables cannot be borrowed beyond the end of the function
11 std::thread::spawn(move || {
15 //~^ NOTE end of enclosing function is here