summary refs log tree commit diff
path: root/src/test/run-fail/bug-811.rs
blob: a657514376569ed8ae8b37ddd4bb711c0cde6de1 (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, message); }

type task_id = int;
type port_id = int;

enum chan_t<T: Send> = {task: task_id, port: port_id};

fn send<T: Send>(ch: chan_t<T>, data: T) { fail; }

fn main() { fail ~"quux"; }