]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/for-comment.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[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 }