2014-12-24 05:44:13 +00: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 08:42:26 +00:00
|
|
|
let a = &[1, 2, 3];
|
2014-12-24 05:44:13 +00:00
|
|
|
println!("{}", {
|
2025-02-05 19:15:27 +00:00
|
|
|
extern "rust-intrinsic" { //~ ERROR "rust-intrinsic" ABI is an implementation detail
|
2014-12-24 05:44:13 +00:00
|
|
|
fn atomic_fence();
|
|
|
|
}
|
2024-02-01 22:45:00 +00:00
|
|
|
atomic_fence(); //~ ERROR: is unsafe
|
2014-12-24 05:44:13 +00:00
|
|
|
42
|
|
|
|
});
|
|
|
|
}
|