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
201 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 21:05:03 +00:00
let x = [ 3, 3, 3 ];
2015-01-31 17:20:46 +00:00
for i in &x {
assert_eq!(*i, 3);
}
}