blob: fc29783c0e32e820570e090c4e2902932f0df62e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// edition: 2021
#![feature(async_fn_in_trait)]
#![allow(incomplete_features)]
trait Foo {
async fn foo<T>();
}
impl Foo for () {
async fn foo<const N: usize>() {}
//~^ ERROR: method `foo` has an incompatible generic parameter for trait `Foo` [E0053]
}
fn main() {}
|