We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84fa199 + 2126622 commit ba287f8Copy full SHA for ba287f8
src/test/ui/proc-macro/dollar-crate-issue-101211.rs
@@ -0,0 +1,29 @@
1
+// check-pass
2
+// edition:2021
3
+// aux-build:test-macros.rs
4
+
5
+#![no_std] // Don't load unnecessary hygiene information from std
6
+extern crate std;
7
8
+#[macro_use]
9
+extern crate test_macros;
10
11
+macro_rules! foo {
12
+ ($($path:ident)::*) => (
13
+ test_macros::recollect!(
14
+ $($path)::*
15
+ )
16
17
+}
18
19
+macro_rules! baz {
20
+ () => (
21
+ foo!($crate::BAR)
22
23
24
25
+pub const BAR: u32 = 19;
26
27
+fn main(){
28
+ std::println!("{}", baz!());
29
0 commit comments