summaryrefslogtreecommitdiffstats
path: root/tests/pretty/for-comment.rs
blob: 447e7f918c22448bd88c9269c042a02c976ec053 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: --crate-type=lib

// pp-exact

fn f(v: &[isize]) -> isize {
    let mut n = 0;
    for e in v {
        n = *e; // This comment once triggered pretty printer bug
    }
    n
}