Skip to content

Commit

Permalink
Rollup merge of rust-lang#101677 - winxpqq955:issue-101211, r=fee1-dead
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 12, 2022
2 parents 84fa199 + 2126622 commit ba287f8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/test/ui/proc-macro/dollar-crate-issue-101211.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// check-pass
// edition:2021
// aux-build:test-macros.rs

#![no_std] // Don't load unnecessary hygiene information from std
extern crate std;

#[macro_use]
extern crate test_macros;

macro_rules! foo {
($($path:ident)::*) => (
test_macros::recollect!(
$($path)::*
)
)
}

macro_rules! baz {
() => (
foo!($crate::BAR)
)
}

pub const BAR: u32 = 19;

fn main(){
std::println!("{}", baz!());
}

0 comments on commit ba287f8

Please sign in to comment.