]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/io-infects-caller.rs
Populate tree.
[rust.git] / src / test / compile-fail / io-infects-caller.rs
1 // error-pattern: calculated effect is 'io'
2
3 io fn foo() {
4   let chan[int] c = chan();
5   c <| 10;
6 }
7
8 fn main() {
9   foo();
10 }