]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/for-loop-goofiness.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / for-loop-while / for-loop-goofiness.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 enum BogusOption<T> {
5     None,
6     Some(T),
7 }
8
9 type Iterator = isize;
10
11 pub fn main() {
12     let x = [ 3, 3, 3 ];
13     for i in &x {
14         assert_eq!(*i, 3);
15     }
16 }