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

ignore! macro doesn't seem to work #3510

Closed
erickt opened this issue Sep 16, 2012 · 2 comments
Closed

ignore! macro doesn't seem to work #3510

erickt opened this issue Sep 16, 2012 · 2 comments

Comments

@erickt
Copy link
Contributor

erickt commented Sep 16, 2012

ignore!( foo bar )

fn main() {
}

Errors out with:

test.rs:1:0: 1:6 error: expected item but found `ignore`
test.rs:1 ignore!( foo bar )
          ^~~~~~
@nikomatsakis
Copy link
Contributor

Like any macro, it can only be used in expr position. Dup of #3086.

@graydon
Copy link
Contributor

graydon commented Sep 17, 2012

Yeah. I'd quite like to fix/finish this.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Fix duplication of attributes on a match arm's body
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 25, 2024
unix_sigpipe: don't inline DEFAULT, just use it from rustc

The default anyway changed since this code was written... it's now 0, not 2.
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

3 participants