about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/fn-exception-target-features.rs
blob: 66cc4139770320c7a2d508eaa6b8a16db6229ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ 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
}