summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/generics-mismatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/in-trait/generics-mismatch.stderr')
-rw-r--r--tests/ui/async-await/in-trait/generics-mismatch.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/async-await/in-trait/generics-mismatch.stderr b/tests/ui/async-await/in-trait/generics-mismatch.stderr
new file mode 100644
index 000000000..3518aa05c
--- /dev/null
+++ b/tests/ui/async-await/in-trait/generics-mismatch.stderr
@@ -0,0 +1,16 @@
+error[E0053]: method `foo` has an incompatible generic parameter for trait `Foo`
+ --> $DIR/generics-mismatch.rs:11: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`.