Files
rust/tests/ui/borrowck/issue-92157.rs
David Wood 92eb4450fa tests: use minicore more
minicore makes it much easier to add new language items to all of the
existing `no_core` tests.
2025-02-24 09:26:54 +00:00

21 lines
370 B
Rust

//@ add-core-stubs
#![feature(no_core)]
#![feature(lang_items)]
#![no_core]
#[cfg(target_os = "linux")]
#[link(name = "c")]
extern "C" {}
#[lang = "start"]
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {
//~^ ERROR lang item `start` function has wrong type [E0308]
40+2
}
extern crate minicore;
use minicore::*;
fn main() {}