mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 21:47:36 +00:00
15 lines
505 B
Rust
15 lines
505 B
Rust
//@ compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=lib
|
|
//@ needs-llvm-components: x86
|
|
//@ check-pass
|
|
#![feature(no_core, lang_items)]
|
|
#![no_core]
|
|
#![allow(unexpected_cfgs)]
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized {}
|
|
|
|
// The compile_error macro does not exist, so if the `cfg` evaluates to `true` this
|
|
// complains about the missing macro rather than showing the error... but that's good enough.
|
|
#[cfg(not(target_feature = "x87"))]
|
|
compile_error!("the x87 feature *should* be exposed in `cfg`");
|