Skip to content

Instantly share code, notes, and snippets.

@Aaron1011 Aaron1011/array.rs
Created Sep 5, 2019

Embed
What would you like to do?
#![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() {}
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
You can’t perform that action at this time.