Moving an Rc<T> into a spawned thread

What happens when this program is compiled?

main.rs
use std::rc::Rc;
use std::thread;

fn main() {
    let data = Rc::new(42);
    let handle = thread::spawn(move || {
        println!("{}", data);
    });
    handle.join().unwrap();
}

23 of 53 in Rust