2015-08-06 23:57:31 +02:00
|
|
|
// compile-flags: --crate-type=lib
|
|
|
|
|
2013-07-05 14:56:54 +09:00
|
|
|
// pp-exact
|
|
|
|
|
2015-03-25 17:06:52 -07: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
|
|
|
}
|