mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
12 lines
302 B
Rust
12 lines
302 B
Rust
//@ compile-flags: --target=riscv32e-unknown-none-elf --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 = "d")]
|
|
//~^ERROR: cannot be enabled with
|
|
pub unsafe fn my_fun() {}
|