rust/tests/ui/for-loop-while/for-loop-goofiness.rs

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

17 lines
200 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
enum BogusOption<T> {
None,
Some(T),
}
type Iterator = isize;
pub fn main() {
2015-01-25 15:05:03 -06:00
let x = [ 3, 3, 3 ];
2015-01-31 11:20:46 -06:00
for i in &x {
assert_eq!(*i, 3);
}
}