rust/tests/ui/target-feature/using-target-feature-unstable.rs
Ralf Jung ffad9aac27 mark some target features as 'forbidden' so they cannot be (un)set
For now, this is just a warning, but should become a hard error in the future
2024-11-04 22:56:47 +01:00

12 lines
201 B
Rust

//@ run-pass
//@ only-x86_64
//@ aux-build:using-target-feature-unstable.rs
extern crate using_target_feature_unstable;
fn main() {
unsafe {
using_target_feature_unstable::foo();
}
}