blob: a257a903fd24dce0e820dc3f97942756f8e23aae (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// error-pattern:quux
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"; }
|