]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / feature-gates / feature-gated-feature-in-macro-arg.rs
1 // tests that input to a macro is checked for use of gated features. If this
2 // test succeeds due to the acceptance of a feature, pick a new feature to
3 // test. Not ideal, but oh well :(
4
5 fn main() {
6     let a = &[1, 2, 3];
7     println!("{}", {
8         extern "rust-intrinsic" { //~ ERROR intrinsics are subject to change
9             fn atomic_fence();
10         }
11         atomic_fence();
12         42
13     });
14 }