From 7d8d7a03412f6db1402f2713ee96a2040cfb24d2 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 13 Sep 2021 17:50:59 +0200 Subject: [PATCH] Add negative test in macro-braces-dot-question.rs. --- src/test/ui/parser/macro-braces-dot-question.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/ui/parser/macro-braces-dot-question.rs b/src/test/ui/parser/macro-braces-dot-question.rs index 05de5a845e958..016b434a6124a 100644 --- a/src/test/ui/parser/macro-braces-dot-question.rs +++ b/src/test/ui/parser/macro-braces-dot-question.rs @@ -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(()) }