]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/def_id_nocore.rs
add checks for the signature of the lang item
[rust.git] / tests / ui / def_id_nocore.rs
index d02518b47f0e23fcf60d5d13270a0c709a84072d..1af77d1a25b2d09df7873e047e2dccffd92216d9 100644 (file)
@@ -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<T>(_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"