Created
March 16, 2015 11:26
-
-
Save Munksgaard/b11bcd026f8df9ec3be0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(no_std)] | |
#![no_std] | |
#[prelude_import] | |
use std::prelude::v1::*; | |
#[macro_use] | |
extern crate "std" as std; | |
fn main() { | |
let v = | |
<[_] as | |
::std::slice::SliceExt>::into_vec(::std::boxed::Box::new([1, 2])); | |
{ | |
let result = | |
match ::std::iter::IntoIterator::into_iter(v) { | |
mut iter => | |
loop { | |
match ::std::iter::Iterator::next(&mut iter) { | |
::std::option::Option::Some(x) => { } | |
::std::option::Option::None => break , | |
} | |
}, | |
}; | |
result | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment