2023-04-23 11:03:09 +00:00
|
|
|
//@ignore-macos
|
2019-08-26 10:11:47 +00:00
|
|
|
|
|
|
|
#![feature(no_core, lang_items, start)]
|
|
|
|
#![no_core]
|
2021-10-07 09:21:30 +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"]
|
2022-12-23 18:54:14 +00:00
|
|
|
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: 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"
|
|
|
|
}
|
|
|
|
}
|