about summary refs log tree commit diff
path: root/src/test/ui/impl-trait
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-12-27 20:09:33 -0800
committerEsteban Küber <esteban@kuber.com.ar>2020-01-06 13:36:06 -0800
commit2905f14b67def26ef003bf224886453cd20bf49a (patch)
tree1b5ca90553d24b4149977f9cc5e8804bef11ad51 /src/test/ui/impl-trait
parentbc1571cc3cfef07251f7df52b95525aa16797ca2 (diff)
downloadrust-2905f14b67def26ef003bf224886453cd20bf49a.tar.gz
rust-2905f14b67def26ef003bf224886453cd20bf49a.zip
Account for `type X = impl Trait;` in lifetime suggestion
Diffstat (limited to 'src/test/ui/impl-trait')
-rw-r--r--src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr b/src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr
index 4c38f0a8a91..5957ecbdc5f 100644
--- a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr
+++ b/src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr
@@ -7,7 +7,7 @@ LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
    = help: consider replacing `'a` with `'static`
 help: to allow this `impl Trait` to capture borrowed data with lifetime `'a`, add `'a` as a bound
    |
-LL | type E<'a, 'b> = impl Sized; + 'a
+LL | type E<'a, 'b> = impl Sized + 'a;
    |
 
 error: aborting due to previous error