1 2 3 4 5 6 7 8 9 10
// error-pattern: calculated effect is 'io' io fn foo() { let chan[int] c = chan(); c <| 10; } fn main() { foo(); }