From f56a06d53bfb4ddd3d80c07e8fe5399d662fd1ca Mon Sep 17 00:00:00 2001 From: Chad Stearns Date: Sun, 5 Apr 2020 17:52:03 -0400 Subject: [PATCH] Fixed shadowing test --- compiler/reporting/tests/test_reporting.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/reporting/tests/test_reporting.rs b/compiler/reporting/tests/test_reporting.rs index 00926c1381..0245ae0669 100644 --- a/compiler/reporting/tests/test_reporting.rs +++ b/compiler/reporting/tests/test_reporting.rs @@ -356,12 +356,12 @@ mod test_reporting { Booly is first defined here: 1 ┆ Booly : [ Yes, No ] - ┆ ^^^^^ + ┆ ^^^^^^^^^^^^^^^^^^^ But then it's defined a second time here: - 3 ┆ Booly : [ Yes, No, Maybe ] - ┆ ^^^^^ + 3 ┆ Booly : [ Yes, No, Maybe ] + ┆ ^^^^^^^^^^^^^^^^^^^^^^^^^^ Since these variables have the same name, it's easy to use the wrong one on accident. Give one of them a new name."# ),