rust/tests/ui/async-await/async-closures/fn-exception-target-features.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
296 B
Rust
Raw Permalink Normal View History

//@ edition: 2021
//@ only-x86_64
use std::future::Future;
2023-09-24 02:51:43 +00:00
use std::pin::Pin;
#[target_feature(enable = "sse2")]
2023-09-24 02:51:43 +00:00
fn target_feature() -> Pin<Box<dyn Future<Output = ()> + 'static>> {
todo!()
}
2024-11-04 18:59:57 +00:00
fn test(f: impl AsyncFn()) {}
fn main() {
test(target_feature); //~ ERROR the trait bound
}