summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/in-trait/deep-match.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-trait/in-trait/deep-match.stderr')
-rw-r--r--src/test/ui/impl-trait/in-trait/deep-match.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/impl-trait/in-trait/deep-match.stderr b/src/test/ui/impl-trait/in-trait/deep-match.stderr
new file mode 100644
index 000000000..034ee5ea4
--- /dev/null
+++ b/src/test/ui/impl-trait/in-trait/deep-match.stderr
@@ -0,0 +1,15 @@
+error[E0053]: method `bar` has an incompatible return type for trait
+ --> $DIR/deep-match.rs:11:17
+ |
+LL | fn bar() -> i32 { 0 }
+ | ^^^
+ | |
+ | expected struct `Wrapper`, found `i32`
+ | return type in trait
+ |
+ = note: expected struct `Wrapper<_>`
+ found type `i32`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0053`.