internal: more macro tests

This commit is contained in:
Aleksey Kladov 2022-01-02 17:18:21 +03:00
parent 7de4b964a9
commit 7989d567e2
5 changed files with 76 additions and 22 deletions

View file

@ -67,6 +67,7 @@ pub fn token_tree_to_syntax_node(
}
}
if tree_sink.roots.len() != 1 {
cov_mark::hit!(expansion_does_not_parse_as_expression);
return Err(ExpandError::ConversionError);
}
//FIXME: would be cool to report errors