mirror of https://github.com/rust-lang/rust.git
13 lines
408 B
Rust
13 lines
408 B
Rust
//! Ensure ABI-required features cannot be disabled via `-Ctarget-feature`.
|
|
//@ compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=lib
|
|
//@ needs-llvm-components: x86
|
|
//@ compile-flags: -Ctarget-feature=-x87
|
|
// For now this is just a warning.
|
|
//@ build-pass
|
|
//@error-pattern: must be enabled to ensure that the ABI
|
|
#![feature(no_core, lang_items)]
|
|
#![no_core]
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized {}
|