X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fdef_id_nocore.rs;h=1af77d1a25b2d09df7873e047e2dccffd92216d9;hb=c31944031184ebcd4704280db7233e306eba6967;hp=2a948d60b108954b6a6e31980f960449ac91c835;hpb=c222e7eca716755f7edcf91a0db8bc523781f0cc;p=rust.git diff --git a/tests/ui/def_id_nocore.rs b/tests/ui/def_id_nocore.rs index 2a948d60b10..1af77d1a25b 100644 --- a/tests/ui/def_id_nocore.rs +++ b/tests/ui/def_id_nocore.rs @@ -1,8 +1,8 @@ -// ignore-windows // ignore-macos #![feature(no_core, lang_items, start)] #![no_core] +#![allow(clippy::missing_safety_doc)] #[link(name = "c")] extern "C" {} @@ -15,12 +15,13 @@ pub trait Copy {} pub unsafe trait Freeze {} #[lang = "start"] -#[start] -fn start(_argc: isize, _argv: *const *const u8) -> isize { +fn start(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize { 0 } -pub struct A; +fn main() {} + +struct A; impl A { pub fn as_ref(self) -> &'static str {