1 // Test which of the builtin types are considered sendable.
3 fn assert_send<T:Send>() { }
5 // owned content are ok
6 fn test30() { assert_send::<Box<isize>>(); }
7 fn test31() { assert_send::<String>(); }
8 fn test32() { assert_send::<Vec<isize> >(); }
10 // but not if they own a bad thing
12 assert_send::<Box<*mut u8>>();
13 //~^ ERROR `*mut u8` cannot be sent between threads safely