]> git.lizzy.rs Git - rust.git/blob - tests/pretty/for-comment.rs
Do not eagerly recover for bad impl-trait in macros
[rust.git] / tests / 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 }