summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr')
-rw-r--r--tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr b/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr
new file mode 100644
index 000000000..433b76b7a
--- /dev/null
+++ b/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr
@@ -0,0 +1,11 @@
+error[E0700]: hidden type for `impl Debug` captures lifetime that does not appear in bounds
+ --> $DIR/impl-fn-hrtb-bounds-2.rs:5:9
+ |
+LL | |x| x
+ | --- ^
+ | |
+ | hidden type `&u8` captures the anonymous lifetime #1 defined here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0700`.