We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8762a4f + a53ee64 commit aa38be8Copy full SHA for aa38be8
crates/hir-def/src/macro_expansion_tests/mbe/matching.rs
@@ -184,3 +184,31 @@ fn test() {
184
"#]],
185
);
186
}
187
+
188
+#[test]
189
+fn meta_variable_raw_name_equals_non_raw() {
190
+ check(
191
+ r#"
192
+macro_rules! m {
193
+ ($r#name:tt) => {
194
+ $name
195
+ }
196
+}
197
198
+fn test() {
199
+ m!(1234)
200
201
+"#,
202
+ expect![[r#"
203
204
205
206
207
208
209
210
+ 1234
211
212
+"#]],
213
+ );
214
0 commit comments