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;
|
|
|
|
|
2012-04-30 12:37:58 -05:00
|
|
|
enum chan_t<T: send> = {task: task_id, port: port_id};
|
2011-08-10 17:57:03 -05:00
|
|
|
|
2012-01-05 08:35:37 -06:00
|
|
|
fn send<T: send>(ch: chan_t<T>, -data: T) { fail; }
|
2011-08-10 17:57:03 -05:00
|
|
|
|
|
|
|
fn main() { fail "quux"; }
|