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

Variables used in when still considered unused #1265

Closed
nikomatsakis opened this issue Dec 7, 2011 · 0 comments
Closed

Variables used in when still considered unused #1265

nikomatsakis opened this issue Dec 7, 2011 · 0 comments

Comments

@nikomatsakis
Copy link
Contributor

The following code gets an error about an unused variable b:

use std;

fn foo(a: int, b: int) {
    alt a {
      _ when a == b { log_err "hi"; }
      _ { log_err "ho"; }
    }
}

fn main() {
    foo(1,1);
    foo(1,2);
}
@marijnh marijnh closed this as completed in d28e0c0 Dec 7, 2011
bjorn3 added a commit to bjorn3/rust that referenced this issue Aug 24, 2022
Use `stack_store` instead of `stack_addr`+`store` when building structs
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Restore `floorf*` intrinsics

* Remove negative tests

* Tests for `floorf*`

* Rename to `result`

* Rename fn to `test_towards_neg_inf`
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