mirror of https://github.com/rust-lang/rust
18 lines
392 B
Rust
18 lines
392 B
Rust
//@ edition: 2021
|
|
|
|
#![feature(return_type_notation)]
|
|
//~^ WARN the feature `return_type_notation` is incomplete
|
|
|
|
trait HealthCheck {
|
|
async fn check<const N: usize>() -> bool;
|
|
}
|
|
|
|
async fn do_health_check_par<HC>(hc: HC)
|
|
where
|
|
HC: HealthCheck<check(): Send> + Send + 'static,
|
|
//~^ ERROR return type notation is not allowed for functions that have const parameters
|
|
{
|
|
}
|
|
|
|
fn main() {}
|