about summary refs log tree commit diff
path: root/tests/ui/borrowck/issue-92157.rs
blob: 72f216e301dfc511f2ffde5d726ba34cdc090d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ 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() {}