rust/tests/pretty/for-comment.rs

12 lines
196 B
Rust
Raw Permalink Normal View History

//@ compile-flags: --crate-type=lib
//@ pp-exact
2013-07-05 14:56:54 +09:00
fn f(v: &[isize]) -> isize {
2013-07-05 14:56:54 +09:00
let mut n = 0;
2015-01-31 12:20:46 -05:00
for e in v {
2013-07-05 14:56:54 +09:00
n = *e; // This comment once triggered pretty printer bug
}
2013-08-17 08:37:42 -07:00
n
2013-07-05 14:56:54 +09:00
}