]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/for-comment.rs
Rollup merge of #103305 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / pretty / for-comment.rs
1 // compile-flags: --crate-type=lib
2
3 // pp-exact
4
5 fn f(v: &[isize]) -> isize {
6     let mut n = 0;
7     for e in v {
8         n = *e; // This comment once triggered pretty printer bug
9     }
10     n
11 }