about summary refs log tree commit diff
path: root/src/test/ui/impl-trait
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-10-22 20:18:16 +0000
committerMichael Goulet <michael@errs.io>2022-10-22 20:29:40 +0000
commitc0cda2b2781a7cd66cc5d6672e390edfdbf7fc64 (patch)
tree3d77098bb1f860e1d1e423512d8474e4b1d4108d /src/test/ui/impl-trait
parent289b2b8cf971b1adf132cb5b7f15368837c5e353 (diff)
downloadrust-c0cda2b2781a7cd66cc5d6672e390edfdbf7fc64.tar.gz
rust-c0cda2b2781a7cd66cc5d6672e390edfdbf7fc64.zip
Pretty print lifetimes captured by RPIT
Diffstat (limited to 'src/test/ui/impl-trait')
-rw-r--r--src/test/ui/impl-trait/hidden-lifetimes.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/impl-trait/hidden-lifetimes.stderr b/src/test/ui/impl-trait/hidden-lifetimes.stderr
index efc228de58b..de06ded7acd 100644
--- a/src/test/ui/impl-trait/hidden-lifetimes.stderr
+++ b/src/test/ui/impl-trait/hidden-lifetimes.stderr
@@ -1,4 +1,4 @@
-error[E0700]: hidden type for `impl Swap` captures lifetime that does not appear in bounds
+error[E0700]: hidden type for `impl Swap + 'a` captures lifetime that does not appear in bounds
   --> $DIR/hidden-lifetimes.rs:29:5
    |
 LL | fn hide_ref<'a, 'b, T: 'static>(x: &'a mut &'b T) -> impl Swap + 'a {
@@ -11,7 +11,7 @@ help: to declare that the `impl Trait` captures `'b`, you can add an explicit `'
 LL | fn hide_ref<'a, 'b, T: 'static>(x: &'a mut &'b T) -> impl Swap + 'a + 'b {
    |                                                                     ++++
 
-error[E0700]: hidden type for `impl Swap` captures lifetime that does not appear in bounds
+error[E0700]: hidden type for `impl Swap + 'a` captures lifetime that does not appear in bounds
   --> $DIR/hidden-lifetimes.rs:46:5
    |
 LL | fn hide_rc_refcell<'a, 'b: 'a, T: 'static>(x: Rc<RefCell<&'b T>>) -> impl Swap + 'a {