Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary chan in send fails to typecheck #117

Closed
jyasskin opened this issue Jul 17, 2010 · 2 comments
Closed

Temporary chan in send fails to typecheck #117

jyasskin opened this issue Jul 17, 2010 · 2 comments

Comments

@jyasskin
Copy link
Contributor

io fn main() {
  let port[int] p = port();
  chan(p) <| 3;
}

fails with

test2.rs:3:6 - 3:14:E:Error: unresolved temp node #0

pulling the chan out into a local variable compiles successfully.

@pcwalton
Copy link
Contributor

This is a bug in resolve.ml actually, not the typechecker.

@pcwalton
Copy link
Contributor

Include the statements on the LHS of a binop when desugaring. Closed by 0863114.

oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
eddyb pushed a commit to eddyb/rust that referenced this issue Jun 30, 2020
Update `cargo` and `crates-io` dependencies
bors pushed a commit to rust-lang-ci/rust that referenced this issue Oct 1, 2021
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
Make set/get_volatile check the type of value.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants