Skip to content

Instantly share code, notes, and snippets.

@Munksgaard
Created March 16, 2015 11:26
Show Gist options
  • Save Munksgaard/b11bcd026f8df9ec3be0 to your computer and use it in GitHub Desktop.
Save Munksgaard/b11bcd026f8df9ec3be0 to your computer and use it in GitHub Desktop.
#![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