mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Add negative test in macro-braces-dot-question.rs.
This commit is contained in:
parent
ebf12529df
commit
7d8d7a0341
@ -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…
Reference in New Issue
Block a user