Add open delim when delim not match

This commit is contained in:
Edwin Cheng 2020-03-21 05:20:28 +08:00
parent 6bcaa1d7d1
commit adc54632ae
2 changed files with 28 additions and 5 deletions

View file

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