rust/tests/pretty/for-comment.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
196 B
Rust
Raw Normal View History

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