From 509cb33dbcdb631625288f72c359a35dde6524b7 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Tue, 14 Jan 2020 14:49:30 -0800 Subject: review comments --- src/test/ui/impl-trait/equality.stderr | 1 + src/test/ui/point-to-type-err-cause-on-impl-trait-return.stderr | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'src/test/ui') diff --git a/src/test/ui/impl-trait/equality.stderr b/src/test/ui/impl-trait/equality.stderr index be8653d1689..ceb32dd4cd3 100644 --- a/src/test/ui/impl-trait/equality.stderr +++ b/src/test/ui/impl-trait/equality.stderr @@ -12,6 +12,7 @@ LL | 0_u32 | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see diff --git a/src/test/ui/point-to-type-err-cause-on-impl-trait-return.stderr b/src/test/ui/point-to-type-err-cause-on-impl-trait-return.stderr index 2c0425e718a..87daab5ca7a 100644 --- a/src/test/ui/point-to-type-err-cause-on-impl-trait-return.stderr +++ b/src/test/ui/point-to-type-err-cause-on-impl-trait-return.stderr @@ -12,6 +12,7 @@ LL | 1u32 | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see @@ -29,6 +30,7 @@ LL | return 1u32; | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see @@ -46,6 +48,7 @@ LL | 1u32 | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see @@ -75,6 +78,7 @@ LL | _ => 1u32, | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see @@ -94,6 +98,7 @@ LL | | } | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see @@ -111,6 +116,7 @@ LL | 1u32 | = note: to return `impl Trait`, all returned values must be of the same type = help: you can instead return a trait object using `Box` + = help: alternatively, create a new `enum` with a variant for each returned type = note: for information on `impl Trait`, see = note: for information on trait objects, see -- cgit 1.4.1-3-g733a5