about summary refs log tree commit diff
path: root/src/test/ui/issues
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic@gmail.com>2019-01-26 20:25:36 +0100
committerRémy Rakic <remy.rakic@gmail.com>2019-01-27 10:52:45 +0100
commit489bc4a2c6ec47eb35dc066247e11f335b278333 (patch)
tree99d718a35e3ef113f0905033ebe1f1e748f2a4c3 /src/test/ui/issues
parent1730ad4d1cbb703be970f8494ec349bf2c38e3f4 (diff)
downloadrust-489bc4a2c6ec47eb35dc066247e11f335b278333.tar.gz
rust-489bc4a2c6ec47eb35dc066247e11f335b278333.zip
When mentioning lifetimes, put either the trait ref or the self type closer to the lifetimes
When mentioning lifetimes, only invert wording between the expected trait and the self type when the self type has the vid.
This way, the lifetimes always stay close to the self type or trait ref that actually contains them.
Diffstat (limited to 'src/test/ui/issues')
-rw-r--r--src/test/ui/issues/issue-54302.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/issues/issue-54302.stderr b/src/test/ui/issues/issue-54302.stderr
index ddf0414faf6..442d32eb9f1 100644
--- a/src/test/ui/issues/issue-54302.stderr
+++ b/src/test/ui/issues/issue-54302.stderr
@@ -4,8 +4,8 @@ error: implementation of `Deserialize` is not general enough
 LL |     assert_deserialize_owned::<&'static str>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = note: `Deserialize<'0>` would have to be implemented for the type `&'static str`, for any lifetime `'0`
-   = note: but `Deserialize<'1>` is actually implemented for the type `&str`, for some lifetime `'1`
+   = note: `&'static str` must implement `Deserialize<'0>`, for any lifetime `'0`
+   = note: but `&str` actually implements `Deserialize<'1>`, for some lifetime `'1`
 
 error: aborting due to previous error