Add negative test in macro-braces-dot-question.rs.

This commit is contained in:
Mara Bos 2021-09-13 17:50:59 +02:00
parent ebf12529df
commit 7d8d7a0341

View File

@ -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(())
}