about summary refs log tree commit diff
path: root/tests/ui/parser/macro/macro-braces-dot-question.rs
blob: 9b070f201b573a941b84cf09e1b7862a823cbe18 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-pass

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