blob: a5c81a929981062dae0d6c1f31ebf1142fcccacf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ edition: 2021
trait Foo {
async fn foo<T>();
}
impl Foo for () {
async fn foo<const N: usize>() {}
//~^ ERROR: associated function `foo` has an incompatible generic parameter for trait `Foo` [E0053]
}
fn main() {}
|