]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/for-loop-no-std.rs
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / for-loop-while / for-loop-no-std.rs
1 // run-pass
2 #![allow(unused_imports)]
3 #![feature(lang_items, start)]
4 #![no_std]
5
6 extern crate std as other;
7
8 #[macro_use] extern crate alloc;
9
10 #[start]
11 fn start(_argc: isize, _argv: *const *const u8) -> isize {
12     for _ in [1,2,3].iter() { }
13     0
14 }