X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fdef_id_nocore.rs;h=1af77d1a25b2d09df7873e047e2dccffd92216d9;hb=c31944031184ebcd4704280db7233e306eba6967;hp=d02518b47f0e23fcf60d5d13270a0c709a84072d;hpb=664522baddd813e9a8a989479289be43fe0da5cd;p=rust.git diff --git a/tests/ui/def_id_nocore.rs b/tests/ui/def_id_nocore.rs index d02518b47f0..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,14 +15,14 @@ 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; -#[allow(clippy::unused_self)] impl A { pub fn as_ref(self) -> &'static str { "A"