From 20eda09712f0c4cd701575d125122472252820db Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 6 Mar 2021 04:57:34 +0800 Subject: Fix fail to parse :: for meta in mbe --- crates/mbe/src/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/mbe/src/tests.rs') diff --git a/crates/mbe/src/tests.rs b/crates/mbe/src/tests.rs index 5c641ebf2..08acd4ac2 100644 --- a/crates/mbe/src/tests.rs +++ b/crates/mbe/src/tests.rs @@ -954,7 +954,8 @@ fn test_meta() { .assert_expand_items( r#"foo! { cfg(target_os = "windows") }"#, r#"# [cfg (target_os = "windows")] fn bar () {}"#, - ); + ) + .assert_expand_items(r#"foo! { hello::world }"#, r#"# [hello :: world] fn bar () {}"#); } #[test] -- cgit v1.2.3