Fix performance problem

This commit is contained in:
Florian Diebold 2020-03-15 14:37:30 +01:00
parent e6ec4a329f
commit 0660dd10d2
2 changed files with 40 additions and 35 deletions

View file

@ -1663,5 +1663,5 @@ fn test_expand_bad_literal() {
macro_rules! foo { ($i:literal) => {}; }
"#,
)
.assert_expand_err(r#"foo!(&k");"#, &ExpandError::NoMatchingRule);
.assert_expand_err(r#"foo!(&k");"#, &ExpandError::BindingError("".to_string()));
}