summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro-braces-dot-question.rs
blob: 016b434a6124a83ecd1cad9fda874a0aa5689aa9 (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(())
}