rust/src/test/ui/issues/issue-811.rs
2020-05-08 00:39:02 +09:00

27 lines
403 B
Rust

// 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");
}