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

Comparison of by-ref single-variant nullary tag does not work #1035

Closed
brson opened this issue Oct 12, 2011 · 1 comment
Closed

Comparison of by-ref single-variant nullary tag does not work #1035

brson opened this issue Oct 12, 2011 · 1 comment

Comments

@brson
Copy link
Contributor

brson commented Oct 12, 2011

tag chan {
    chan_t;
}

fn wrapper3(i: chan) {
    log_err i;
    assert i == chan_t;
}

fn main() {
    wrapper3(chan_t);
}

log displays a number that looks like garbage and the assert fails. Possibly the same issue as #1034

@brson
Copy link
Contributor Author

brson commented Oct 12, 2011

Actually, I don't know whether i is passed by-ref, but I remember when I changed the passing convention it worked.

coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Add support to typedef in cprover bindings crate

* Address comments + more tests
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