rust/src/test/run-pass/for-loop-while/for-loop-no-std.rs

15 lines
258 B
Rust
Raw Normal View History

// run-pass
#![allow(unused_imports)]
2017-06-13 17:52:59 -05:00
#![feature(lang_items, start, alloc)]
#![no_std]
extern crate std as other;
2017-06-13 17:52:59 -05:00
#[macro_use] extern crate alloc;
#[start]
fn start(_argc: isize, _argv: *const *const u8) -> isize {
for _ in [1,2,3].iter() { }
0
}