Skip to content

|&:| syntax should be obsolete #22881

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
japaric opened this issue Feb 28, 2015 · 2 comments
Closed

|&:| syntax should be obsolete #22881

japaric opened this issue Feb 28, 2015 · 2 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-grammar Area: The grammar of Rust

Comments

@japaric
Copy link
Member

japaric commented Feb 28, 2015

|:| and |&mut:| are obsolete, but |&:| is not.

fn main() {
    let a = |:| {};  //~ error: obsolete syntax: `:`, `&mut:`, or `&:`
    let b = |&:| {};  // accepted
    let c = |&mut :| {};  //~ error: obsolete syntax: `:`, `&mut:`, or `&:`
}
rustc 1.0.0-nightly (b47aebe3f 2015-02-26) (built 2015-02-27)
@huonw huonw added A-grammar Area: The grammar of Rust A-diagnostics Area: Messages for errors, warnings, and lints labels Feb 28, 2015
@japaric
Copy link
Member Author

japaric commented Feb 28, 2015

I think I spotted the problem, testing...

@japaric
Copy link
Member Author

japaric commented Feb 28, 2015

Fix in #22884

@bors bors closed this as completed in cc8a5a0 Feb 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-grammar Area: The grammar of Rust
Projects
None yet
Development

No branches or pull requests

2 participants