Add negative test in macro-braces-dot-question.rs.
This commit is contained in:
parent
ebf12529df
commit
7d8d7a0341
1 changed files with 2 additions and 0 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue