Skip to content

Type macros allow types to be followed by ; #30007

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
jonas-schievink opened this issue Nov 23, 2015 · 0 comments · Fixed by #30011
Closed

Type macros allow types to be followed by ; #30007

jonas-schievink opened this issue Nov 23, 2015 · 0 comments · Fixed by #30011
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@jonas-schievink
Copy link
Contributor

This compiles:

#![feature(type_macros)]

macro_rules! t {
    () => ( String ; );
}

fn main() {
    let i: Vec<t!()>;
}

I expected this to be rejected, simply because Vec<String;> doesn't parse as a type.

@apasel422 apasel422 added the A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) label Nov 23, 2015
bors added a commit that referenced this issue Nov 25, 2015
Fixes #22425

Also fixes #30007, since it's just a change from `true` to `false`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants