]> git.proxmox.com Git - rustc.git/blame - src/test/ui/z-crate-attr.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / z-crate-attr.rs
CommitLineData
416331ca 1// run-pass
8faf50e0
XL
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.
94b46f34 5
8faf50e0 6// compile-flags: -Zcrate-attr=feature(abi_unadjusted)
94b46f34 7
8faf50e0 8#![allow(dead_code)]
94b46f34 9
8faf50e0 10extern "unadjusted" fn foo() {}
0531ce1d 11
5bcae85e 12fn main() {}