3 fn send<T:Send + std::fmt::Debug>(ch: Chan<T>, data: T) {
5 println!("{:?}", data);
10 struct Chan<T>(isize, marker::PhantomData<T>);
12 // Tests that "log(debug, message);" is flagged as using
13 // message after the send deinitializes it
14 fn test00_start(ch: Chan<Box<isize>>, message: Box<isize>, _count: Box<isize>) {
16 println!("{}", message); //~ ERROR borrow of moved value: `message`
19 fn main() { panic!(); }