rust/src/test/run-fail/bug-811.rs

12 lines
273 B
Rust
Raw Normal View History

// error-pattern:quux
2011-11-03 05:14:48 -05:00
fn test00_start(ch: chan_t<int>, message: int) { send(ch, copy message); }
type task_id = int;
type port_id = int;
type chan_t<send T> = {task: task_id, port: port_id};
fn send<send T>(ch: chan_t<T>, -data: T) { fail; }
fn main() { fail "quux"; }