2014-12-24 00:44:13 -05:00
|
|
|
// tests that input to a macro is checked for use of gated features. If this
|
|
|
|
// test succeeds due to the acceptance of a feature, pick a new feature to
|
|
|
|
// test. Not ideal, but oh well :(
|
|
|
|
|
|
|
|
fn main() {
|
2015-03-03 10:42:26 +02:00
|
|
|
let a = &[1, 2, 3];
|
2014-12-24 00:44:13 -05:00
|
|
|
println!("{}", {
|
|
|
|
extern "rust-intrinsic" { //~ ERROR intrinsics are subject to change
|
|
|
|
fn atomic_fence();
|
|
|
|
}
|
2024-02-01 22:45:00 +00:00
|
|
|
atomic_fence(); //~ ERROR: is unsafe
|
2014-12-24 00:44:13 -05:00
|
|
|
42
|
|
|
|
});
|
|
|
|
}
|