Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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!());
}