fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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