2024-02-16 14:02:50 -06:00
|
|
|
//@ only-x86_64
|
|
|
|
//@ check-fail
|
2023-09-18 13:11:01 -05:00
|
|
|
|
|
|
|
#![feature(lang_items, no_core, target_feature_11)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
#[lang = "copy"]
|
|
|
|
pub trait Copy {}
|
|
|
|
#[lang = "sized"]
|
|
|
|
pub trait Sized {}
|
|
|
|
|
|
|
|
#[lang = "start"]
|
|
|
|
#[target_feature(enable = "avx2")]
|
|
|
|
//~^ ERROR `start` language item function is not allowed to have `#[target_feature]`
|
|
|
|
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
|
|
|
|
0
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|