blob: d48d22bb3d17b54097760466c02e7a52c88dfd65 [file] [log] [blame] [edit]
use std::cell::RefCell;
fn main() {
thread_local! {
static S: RefCell<String> = RefCell::default();
}
S.with(|x| *x.borrow_mut() = "pika pika".to_string());
S.with(|x| println!("{}", x.borrow()));
}