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

foo.bar: should expected : #33455

Closed
liigo opened this issue May 6, 2016 · 2 comments
Closed

foo.bar: should expected : #33455

liigo opened this issue May 6, 2016 · 2 comments
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.

Comments

@liigo
Copy link
Contributor

liigo commented May 6, 2016

use foo.bar; // expected one of `;` or `as`, found `.`

Should it expect a :?

Full example code:

mod foo {
    fn bar() {}
}

fn main() {
    use foo.bar; // expected one of `;` or `as`, found `.`
    bar();
}
@petrochenkov
Copy link
Contributor

It should expect ::, but it's lost from the expected set.
I't not an issue specific for use, but a symptom of a more general problem with expected token sets.
There's a long weekend ahead, I'll investigate.

@petrochenkov
Copy link
Contributor

Oh wait, this works on nightly, as expected (fixed in #33044, more specifically).
It means there are no problems with expected token sets.

@apasel422 apasel422 added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Jun 17, 2016
dsprenkels added a commit to dsprenkels/rust that referenced this issue Jun 24, 2016
Manishearth added a commit to Manishearth/rust that referenced this issue Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Projects
None yet
Development

No branches or pull requests

3 participants