about summary refs log tree commit diff
path: root/src/test/ui/shadowed
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-12-02 11:39:42 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2020-12-02 11:39:42 +0900
commitcdcce115043a19b2bbc154e56b59fa2f5017bbbc (patch)
tree25404241f9fe5026d3a7fc624216edd794576a5d /src/test/ui/shadowed
parent6645da366eed0c61258a04265bea513e94df7ea6 (diff)
downloadrust-cdcce115043a19b2bbc154e56b59fa2f5017bbbc.tar.gz
rust-cdcce115043a19b2bbc154e56b59fa2f5017bbbc.zip
Tweak diagnostics on shadowing lifetimes/labels
Diffstat (limited to 'src/test/ui/shadowed')
-rw-r--r--src/test/ui/shadowed/shadowed-lifetime.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/shadowed/shadowed-lifetime.stderr b/src/test/ui/shadowed/shadowed-lifetime.stderr
index 5ea3d926430..68cc505d36d 100644
--- a/src/test/ui/shadowed/shadowed-lifetime.stderr
+++ b/src/test/ui/shadowed/shadowed-lifetime.stderr
@@ -4,7 +4,7 @@ error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scop
 LL | impl<'a> Foo<'a> {
    |      -- first declared here
 LL |     fn shadow_in_method<'a>(&'a self) -> &'a isize {
-   |                         ^^ lifetime 'a already in scope
+   |                         ^^ lifetime `'a` already in scope
 
 error[E0496]: lifetime name `'b` shadows a lifetime name that is already in scope
   --> $DIR/shadowed-lifetime.rs:12:20
@@ -12,7 +12,7 @@ error[E0496]: lifetime name `'b` shadows a lifetime name that is already in scop
 LL |     fn shadow_in_type<'b>(&'b self) -> &'b isize {
    |                       -- first declared here
 LL |         let x: for<'b> fn(&'b isize) = panic!();
-   |                    ^^ lifetime 'b already in scope
+   |                    ^^ lifetime `'b` already in scope
 
 error: aborting due to 2 previous errors