2019-08-26 10:11:47 +00:00
|
|
|
// ignore-windows
|
|
|
|
// ignore-macos
|
|
|
|
|
|
|
|
#![feature(no_core, lang_items, start)]
|
|
|
|
#![no_core]
|
2021-09-28 15:33:58 +00:00
|
|
|
#![allow(clippy::missing_safety_doc)]
|
2019-08-26 10:11:47 +00:00
|
|
|
|
|
|
|
#[link(name = "c")]
|
|
|
|
extern "C" {}
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
pub trait Sized {}
|
|
|
|
#[lang = "copy"]
|
|
|
|
pub trait Copy {}
|
|
|
|
#[lang = "freeze"]
|
|
|
|
pub unsafe trait Freeze {}
|
|
|
|
|
|
|
|
#[lang = "start"]
|
2021-09-10 13:33:06 +00:00
|
|
|
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {
|
2019-08-26 10:11:47 +00:00
|
|
|
0
|
|
|
|
}
|
|
|
|
|
2021-09-10 13:33:06 +00:00
|
|
|
fn main() {}
|
|
|
|
|
2021-06-03 06:41:37 +00:00
|
|
|
struct A;
|
2019-08-26 10:11:47 +00:00
|
|
|
|
|
|
|
impl A {
|
|
|
|
pub fn as_ref(self) -> &'static str {
|
|
|
|
"A"
|
|
|
|
}
|
|
|
|
}
|