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

Can double-ref (&&x) parsing be fixed? #11227

Closed
brson opened this issue Dec 31, 2013 · 1 comment · Fixed by #13576
Closed

Can double-ref (&&x) parsing be fixed? #11227

brson opened this issue Dec 31, 2013 · 1 comment · Fixed by #13576
Labels
A-grammar Area: The grammar of Rust P-low Low priority

Comments

@brson
Copy link
Contributor

brson commented Dec 31, 2013

This is very unfortunate.

fn main() {
    let x = ~~1;
    let y = &&x;
}
brian@brian-X1:~/dev/rust4/build$ x86_64-unknown-linux-gnu/stage1/bin/rustc test.rs
test.rs:3:12: 3:14 error: unexpected token: `&&`
test.rs:3     let y = &&x;
                      ^~

Nominating.

@pnkfelix
Copy link
Member

pnkfelix commented Jan 9, 2014

pcwalton is pretty sure this is fixable without backcompat risk. Assigning to P-low.

lifthrasiir added a commit to lifthrasiir/rust that referenced this issue Apr 17, 2014
bors added a commit that referenced this issue Apr 18, 2014
Uses the same strategy as `||` and `>>`. Closes #11227.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: The grammar of Rust P-low Low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants