]> git.proxmox.com Git - rustc.git/blame - tests/ui/async-await/in-trait/generics-mismatch.next.stderr
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / ui / async-await / in-trait / generics-mismatch.next.stderr
CommitLineData
353b0b11
FG
1error[E0053]: method `foo` has an incompatible generic parameter for trait `Foo`
2 --> $DIR/generics-mismatch.rs:13: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`.