Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

ices/51173.rs: fixed with errors #536

Merged
merged 1 commit into from
Nov 5, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 5, 2020

Issue: rust-lang/rust#51173

macro_rules! bug {
    ( $doc:expr ) => { #[doc = $doc] enum Bug {} }
}

bug! { (stringify!(bug)) }

fn main() {}
=== stdout ===
=== stderr ===
error: unexpected token: `("bug")`
 --> /home/runner/work/glacier/glacier/ices/51173.rs:2:32
  |
2 |     ( $doc:expr ) => { #[doc = $doc] enum Bug {} }
  |                                ^^^^
...
5 | bug! { (stringify!(bug)) }
  | -------------------------- in this macro invocation
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: unexpected token: `("bug")`
 --> /home/runner/work/glacier/glacier/ices/51173.rs:2:32
  |
2 |     ( $doc:expr ) => { #[doc = $doc] enum Bug {} }
  |                                ^^^^
...
5 | bug! { (stringify!(bug)) }
  | -------------------------- in this macro invocation
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

==============
@Alexendoo Alexendoo merged commit ed32d84 into master Nov 5, 2020
@Alexendoo Alexendoo deleted the autofix/ices/51173.rs branch November 5, 2020 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants