]> git.lizzy.rs Git - rust.git/blob - src/test/ui/z-crate-attr.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / z-crate-attr.rs
1 // run-pass
2 // This test checks if an unstable feature is enabled with the -Zcrate-attr=feature(foo) flag. If
3 // the exact feature used here is causing problems feel free to replace it with another
4 // perma-unstable feature.
5
6 // compile-flags: -Zcrate-attr=feature(abi_unadjusted)
7
8 #![allow(dead_code)]
9
10 extern "unadjusted" fn foo() {}
11
12 fn main() {}