rust/src/test/run-pass/pipe-pingpong-proto.rs

17 lines
253 B
Rust
Raw Normal View History

// xfail-test
// An example to make sure the protocol parsing syntax extension works.
proto! pingpong {
ping:send {
ping -> pong
}
pong:recv {
pong -> ping
}
}
fn main() {
// TODO: do something with the protocol
}