summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/default-body-with-rpit.next.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/in-trait/default-body-with-rpit.next.stderr')
-rw-r--r--tests/ui/impl-trait/in-trait/default-body-with-rpit.next.stderr24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/in-trait/default-body-with-rpit.next.stderr b/tests/ui/impl-trait/in-trait/default-body-with-rpit.next.stderr
new file mode 100644
index 000000000..3c24eff9a
--- /dev/null
+++ b/tests/ui/impl-trait/in-trait/default-body-with-rpit.next.stderr
@@ -0,0 +1,24 @@
+error: concrete type differs from previous defining opaque type use
+ --> $DIR/default-body-with-rpit.rs:13:9
+ |
+LL | ""
+ | ^^ expected `impl Debug`, got `&'static str`
+ |
+note: previous use here
+ --> $DIR/default-body-with-rpit.rs:12:39
+ |
+LL | async fn baz(&self) -> impl Debug {
+ | _______________________________________^
+LL | | ""
+LL | | }
+ | |_____^
+
+error[E0720]: cannot resolve opaque type
+ --> $DIR/default-body-with-rpit.rs:12:28
+ |
+LL | async fn baz(&self) -> impl Debug {
+ | ^^^^^^^^^^ cannot resolve opaque type
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0720`.