diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2023-09-23 22:51:43 -0400 | 
|---|---|---|
| committer | Luca Versari <veluca93@gmail.com> | 2025-01-27 23:44:47 +0100 | 
| commit | 44b2e6c07d96112a4c2229638f5e73a3f078136f (patch) | |
| tree | edb58255bb6db51039504abbb766a58e85c4b95e /tests/ui/async-await/async-closures/fn-exception-target-features.rs | |
| parent | ebcf860e7345e3387b4c6961338c77424b43cbd5 (diff) | |
| download | rust-44b2e6c07d96112a4c2229638f5e73a3f078136f.tar.gz rust-44b2e6c07d96112a4c2229638f5e73a3f078136f.zip | |
Stabilize target_feature_11
Diffstat (limited to 'tests/ui/async-await/async-closures/fn-exception-target-features.rs')
| -rw-r--r-- | tests/ui/async-await/async-closures/fn-exception-target-features.rs | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/tests/ui/async-await/async-closures/fn-exception-target-features.rs b/tests/ui/async-await/async-closures/fn-exception-target-features.rs index 82fc776fd2c..66cc4139770 100644 --- a/tests/ui/async-await/async-closures/fn-exception-target-features.rs +++ b/tests/ui/async-await/async-closures/fn-exception-target-features.rs @@ -1,14 +1,13 @@ //@ edition: 2021 //@ only-x86_64 -#![feature(target_feature_11)] -// `target_feature_11` just to test safe functions w/ target features. - -use std::pin::Pin; use std::future::Future; +use std::pin::Pin; #[target_feature(enable = "sse2")] -fn target_feature() -> Pin<Box<dyn Future<Output = ()> + 'static>> { todo!() } +fn target_feature() -> Pin<Box<dyn Future<Output = ()> + 'static>> { + todo!() +} fn test(f: impl AsyncFn()) {} | 
