mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
17 lines
296 B
Rust
17 lines
296 B
Rust
//@ edition: 2021
|
|
//@ only-x86_64
|
|
|
|
use std::future::Future;
|
|
use std::pin::Pin;
|
|
|
|
#[target_feature(enable = "sse2")]
|
|
fn target_feature() -> Pin<Box<dyn Future<Output = ()> + 'static>> {
|
|
todo!()
|
|
}
|
|
|
|
fn test(f: impl AsyncFn()) {}
|
|
|
|
fn main() {
|
|
test(target_feature); //~ ERROR the trait bound
|
|
}
|