0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-22 10:25:09 +01:00
rust/tests/pretty/for-comment.rs

12 lines
196 B
Rust

//@ 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
}