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

Conversation

@github-actions
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
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