summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/generics-mismatch.stderr
blob: 647cc698f9f5e0682ca07fcb84857229d81739f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0053]: method `foo` has an incompatible generic parameter for trait `Foo`
  --> $DIR/generics-mismatch.rs:10:18
   |
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`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0053`.