]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/z-crate-attr.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / attributes / 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() {}