Skip to content

Instantly share code, notes, and snippets.

@steveklabnik
Created June 20, 2014 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveklabnik/ce1dc64bb991ba72f049 to your computer and use it in GitHub Desktop.
Save steveklabnik/ce1dc64bb991ba72f049 to your computer and use it in GitHub Desktop.
an expanded hello
#![feature(phase)]
#![no_std]
#![feature(globs)]
#[phase(syntax, link)]
extern crate std = "std#0.11.0-pre";
extern crate native = "native#0.11.0-pre";
use std::prelude::*;
fn main() {
match (&2,) {
(__arg0,) => {
#[address_insignificant]
#[allow(dead_code)]
static __STATIC_FMTSTR: [::std::fmt::rt::Piece<'static>, ..1u] =
[::std::fmt::rt::Argument(::std::fmt::rt::Argument{position:
::std::fmt::rt::ArgumentNext,
format:
::std::fmt::rt::FormatSpec{fill:
' ',
align:
::std::fmt::rt::AlignUnknown,
flags:
0u,
precision:
::std::fmt::rt::CountImplied,
width:
::std::fmt::rt::CountImplied,},
method:
::std::option::None,})];
let __args_vec =
&[::std::fmt::argument(::std::fmt::secret_string, __arg0)];
let __args =
unsafe {
::std::fmt::Arguments::new(__STATIC_FMTSTR, __args_vec)
};
::std::io::stdio::println_args(&__args)
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment