Skip to content

Commit

Permalink
Add negative test in macro-braces-dot-question.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Sep 13, 2021
1 parent ebf1252 commit 7d8d7a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/parser/macro-braces-dot-question.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ use std::io::Write;
fn main() -> Result<(), std::io::Error> {
vec! { 1, 2, 3 }.len();
write! { vec![], "" }?;
println!{""}
[0]; // separate statement, not indexing into the result of println.
Ok(())
}

0 comments on commit 7d8d7a0

Please sign in to comment.