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

ices/64784.rs: fixed with errors #1631

Merged
merged 1 commit into from
Oct 15, 2023
Merged

ices/64784.rs: fixed with errors #1631

merged 1 commit into from
Oct 15, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#64784

#![feature(decl_macro)]

pub macro m($i:ident, $j:ident) {
    mod $i {
        pub use crate::$j::*;
        pub struct A;
    }
}

m!(x, y);
m!(y, x);
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `64784`
  --> /home/runner/work/glacier/glacier/ices/64784.rs:11:10
   |
11 | m!(y, x);
   |          ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/64784.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 `64784`
  --> /home/runner/work/glacier/glacier/ices/64784.rs:11:10
   |
11 | m!(y, x);
   |          ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/64784.rs`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0601`.
==============
@JohnTitor JohnTitor merged commit fe5c04d into master Oct 15, 2023
@JohnTitor JohnTitor deleted the autofix/ices/64784.rs branch October 15, 2023 02:56
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants