]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | error[E0053]: method `foo` has an incompatible generic parameter for trait `Foo` |
2 | --> $DIR/generics-mismatch.rs:13:18 | |
3 | | | |
4 | LL | trait Foo { | |
5 | | --- | |
6 | LL | async fn foo<T>(); | |
7 | | - expected type parameter | |
8 | ... | |
9 | LL | impl Foo for () { | |
10 | | --------------- | |
11 | LL | async fn foo<const N: usize>() {} | |
12 | | ^^^^^^^^^^^^^^ found const parameter of type `usize` | |
13 | ||
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0053`. |