17dfabff9c
They refer to a function with the `start` attribute, but not necessarily named `start`.
10 lines
248 B
Rust
10 lines
248 B
Rust
// only-x86_64
|
|
|
|
#![feature(start)]
|
|
#![feature(target_feature_11)]
|
|
|
|
#[start]
|
|
#[target_feature(enable = "avx2")]
|
|
//~^ ERROR `#[start]` function is not allowed to have `#[target_feature]`
|
|
fn start(_argc: isize, _argv: *const *const u8) -> isize { 0 }
|