mirror of https://github.com/rust-lang/rust.git
13 lines
388 B
Rust
13 lines
388 B
Rust
//! Ensure ABI-incompatible features cannot be enabled via `#[target_feature]`.
|
|
//@ compile-flags: --target=riscv64gc-unknown-linux-gnu --crate-type=lib
|
|
//@ needs-llvm-components: riscv
|
|
#![feature(no_core, lang_items, riscv_target_feature)]
|
|
#![no_core]
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized {}
|
|
|
|
#[target_feature(enable = "zdinx")]
|
|
//~^ERROR: cannot be enabled with
|
|
pub unsafe fn my_fun() {}
|