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