Skip to content

#[allow(unused_variables)] doesn't work on nightly #30889

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

Closed
yongqli opened this issue Jan 14, 2016 · 1 comment
Closed

#[allow(unused_variables)] doesn't work on nightly #30889

yongqli opened this issue Jan 14, 2016 · 1 comment

Comments

@yongqli
Copy link

yongqli commented Jan 14, 2016

#![feature(stmt_expr_attributes)]
fn main() { 
    #[allow(unused_variables)]
    let m = vec![0, 1, 2, 3];
}

https://play.rust-lang.org/?gist=046284812e585e8331d0&version=nightly

@huonw
Copy link
Member

huonw commented Jan 14, 2016

Duplicate of #30326, but thanks for filing!

@huonw huonw closed this as completed Jan 14, 2016
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