summary refs log tree commit diff
path: root/src/test/ui/issues/issue-811.rs
blob: f929d388819a901f598465395a17e38f2a50e76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// run-fail
// error-pattern:quux
// ignore-emscripten no processes

use std::marker::PhantomData;

fn test00_start(ch: Chan<isize>, message: isize) {
    send(ch, message);
}

type TaskId = isize;
type PortId = isize;

struct Chan<T> {
    task: TaskId,
    port: PortId,
    marker: PhantomData<*mut T>,
}

fn send<T: Send>(_ch: Chan<T>, _data: T) {
    panic!();
}

fn main() {
    panic!("quux");
}