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

ices/87877.rs: fixed with errors #898

Merged
merged 1 commit into from
Aug 14, 2021
Merged

ices/87877.rs: fixed with errors #898

merged 1 commit into from
Aug 14, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#87877

macro_rules! two_items {() => (
    extern {}
    extern {}
)}

macro_rules! single_item_funneler {( $item:item ) => ( $item )}

fn inside_some_function() {
    single_item_funneler! { two_items! {} }
}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `87877`
  --> /home/runner/work/glacier/glacier/ices/87877.rs:1:1
   |
1  | / macro_rules! two_items {() => (
2  | |     extern {}
3  | |     extern {}
4  | | )}
...  |
9  | |     single_item_funneler! { two_items! {} }
10 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/87877.rs`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `87877`
  --> /home/runner/work/glacier/glacier/ices/87877.rs:1:1
   |
1  | / macro_rules! two_items {() => (
2  | |     extern {}
3  | |     extern {}
4  | | )}
...  |
9  | |     single_item_funneler! { two_items! {} }
10 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/87877.rs`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0601`.
==============
@JohnTitor JohnTitor merged commit b33d2cd into master Aug 14, 2021
@JohnTitor JohnTitor deleted the autofix/ices/87877.rs branch August 14, 2021 19:53
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