diff options
author | Edwin Cheng <[email protected]> | 2021-03-05 20:57:34 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2021-03-05 20:57:34 +0000 |
commit | 20eda09712f0c4cd701575d125122472252820db (patch) | |
tree | de3857d38019ce7fd8eb1d20d1823417712fec2a /crates/mbe | |
parent | 3d662e320b97fdc50d8cc1721983661900da22d3 (diff) |
Fix fail to parse :: for meta in mbe
Diffstat (limited to 'crates/mbe')
-rw-r--r-- | crates/mbe/src/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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() { | |||
954 | .assert_expand_items( | 954 | .assert_expand_items( |
955 | r#"foo! { cfg(target_os = "windows") }"#, | 955 | r#"foo! { cfg(target_os = "windows") }"#, |
956 | r#"# [cfg (target_os = "windows")] fn bar () {}"#, | 956 | r#"# [cfg (target_os = "windows")] fn bar () {}"#, |
957 | ); | 957 | ) |
958 | .assert_expand_items(r#"foo! { hello::world }"#, r#"# [hello :: world] fn bar () {}"#); | ||
958 | } | 959 | } |
959 | 960 | ||
960 | #[test] | 961 | #[test] |