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

ices/68091.rs: fixed with errors #253

Merged
merged 1 commit into from
Jan 12, 2020
Merged

ices/68091.rs: fixed with errors #253

merged 1 commit into from
Jan 12, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#68091

macro_rules! x {
    ($($c:tt)*) => {
        $($c)ö* {}
    };
}

fn main() {
    x!(if);
}
=== stdout ===
=== stderr ===
error: missing condition for `if` expression
 --> /home/runner/work/glacier/glacier/ices/68091.rs:3:14
  |
3 |         $($c)ö* {}
  |              ^ expected if condition here

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/68091.rs:3:17
  |
3 |         $($c)ö* {}
  |                 ^^ expected `bool`, found `()`
...
8 |     x!(if);
  |     ------- in this macro invocation

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
==============

=== stdout ===
=== stderr ===
error: missing condition for `if` expression
 --> /home/runner/work/glacier/glacier/ices/68091.rs:3:14
  |
3 |         $($c)ö* {}
  |              ^ expected if condition here

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/68091.rs:3:17
  |
3 |         $($c)ö* {}
  |                 ^^ expected `bool`, found `()`
...
8 |     x!(if);
  |     ------- in this macro invocation

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
==============
@JohnTitor JohnTitor merged commit fe71d4d into master Jan 12, 2020
@JohnTitor JohnTitor deleted the autofix/ices/68091.rs branch January 12, 2020 12:07
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