Created
September 5, 2019 21:30
-
-
Save Aaron1011/8b69db43800e11a76a1c50d93fa91581 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_core)] | |
#![no_std] | |
#![no_core] | |
#![feature(fundamental)] | |
#![feature(lang_items)] | |
#![feature(optin_builtin_traits)] | |
trait MyTrait { | |
fn default() -> Self; | |
} | |
#[lang = "sized"] | |
#[fundamental] | |
pub trait Sized { | |
} | |
#[lang = "freeze"] | |
pub(crate) unsafe auto trait Freeze {} | |
impl<T> MyTrait for [T; 1] where T: MyTrait { | |
fn default() -> [T; 1] { | |
loop {} | |
} | |
} | |
fn main() {} |
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
rustc +stage1 -C incremental=true array.rs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment