2011-08-10 17:57:03 -05:00
|
|
|
// error-pattern:quux
|
2012-08-13 19:11:33 -05:00
|
|
|
fn test00_start(ch: chan_t<int>, message: int) { send(ch, message); }
|
2011-08-10 17:57:03 -05:00
|
|
|
|
|
|
|
type task_id = int;
|
|
|
|
type port_id = int;
|
|
|
|
|
2012-09-07 16:52:28 -05:00
|
|
|
enum chan_t<T: Send> = {task: task_id, port: port_id};
|
2011-08-10 17:57:03 -05:00
|
|
|
|
2012-09-07 16:52:28 -05:00
|
|
|
fn send<T: Send>(ch: chan_t<T>, data: T) { fail; }
|
2011-08-10 17:57:03 -05:00
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
fn main() { fail ~"quux"; }
|