mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
ffad9aac27
For now, this is just a warning, but should become a hard error in the future
13 lines
297 B
Rust
13 lines
297 B
Rust
//@ compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=lib
|
|
//@ needs-llvm-components: x86
|
|
#![feature(no_core, lang_items)]
|
|
#![no_std]
|
|
#![no_core]
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized {}
|
|
|
|
#[target_feature(enable = "soft-float")]
|
|
//~^ERROR: cannot be toggled with
|
|
pub unsafe fn my_fun() {}
|