mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
12 lines
194 B
Rust
12 lines
194 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
|
|
}
|