Skip to content

Commit 7d8d7a0

Browse files
committed
Add negative test in macro-braces-dot-question.rs.
1 parent ebf1252 commit 7d8d7a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/ui/parser/macro-braces-dot-question.rs

+2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ use std::io::Write;
55
fn main() -> Result<(), std::io::Error> {
66
vec! { 1, 2, 3 }.len();
77
write! { vec![], "" }?;
8+
println!{""}
9+
[0]; // separate statement, not indexing into the result of println.
810
Ok(())
911
}

0 commit comments

Comments
 (0)