Add a simpler legacy macro scoping test

This commit is contained in:
Jonas Schievink 2021-07-01 17:28:42 +02:00
parent e8b9f43084
commit 33d5793f19

View File

@ -335,6 +335,24 @@ mod prelude {
);
}
#[test]
fn legacy_macro_use_before_def() {
check(
r#"
m!();
macro_rules! m {
() => {
struct S;
}
}
"#,
expect![[r#"
crate
"#]],
);
}
#[test]
fn plain_macros_are_legacy_textual_scoped() {
check(