2023-03-16 14:29:01 -05:00
|
|
|
error[E0053]: method `foo` has an incompatible generic parameter for trait `Foo`
|
2024-03-11 14:41:40 -05:00
|
|
|
--> $DIR/generics-mismatch.rs:8:18
|
2023-03-16 14:29:01 -05:00
|
|
|
|
|
|
|
|
LL | trait Foo {
|
|
|
|
| ---
|
|
|
|
LL | async fn foo<T>();
|
|
|
|
| - expected type parameter
|
|
|
|
...
|
|
|
|
LL | impl Foo for () {
|
|
|
|
| ---------------
|
|
|
|
LL | async fn foo<const N: usize>() {}
|
|
|
|
| ^^^^^^^^^^^^^^ found const parameter of type `usize`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-03-16 14:29:01 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0053`.
|