Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/macro_expansion_tests/mbe/matching.rs')
| -rw-r--r-- | crates/hir_def/src/macro_expansion_tests/mbe/matching.rs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs b/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs index cfba58c55a..11317cfa9d 100644 --- a/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs +++ b/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs @@ -1,3 +1,5 @@ +//! Test that `$var:expr` captures function correctly. + use expect_test::expect; use crate::macro_expansion_tests::check; @@ -21,21 +23,3 @@ literal!() "#]], ) } - -#[test] -fn wrong_nesting_level() { - check( - r#" -macro_rules! m { - ($($i:ident);*) => ($i) -} -m!{a} -"#, - expect![[r#" -macro_rules! m { - ($($i:ident);*) => ($i) -} -/* error: expected simple binding, found nested binding `i` */ -"#]], - ); -} |