rust/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108655-inline-always-closure.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

17 lines
296 B
Rust

// Tests #108655: closures in `#[target_feature]` functions can still be marked #[inline(always)]
// check-pass
// only-x86_64
#![feature(target_feature_11)]
#[target_feature(enable = "avx")]
pub unsafe fn test() {
({
#[inline(always)]
move || {}
})();
}
fn main() {}