about summary refs log tree commit diff
path: root/src/test/ui/imports
diff options
context:
space:
mode:
authorAndy Russell <arussell123@gmail.com>2018-01-28 20:48:54 -0500
committerAndy Russell <arussell123@gmail.com>2018-01-28 20:48:54 -0500
commit043d4615f2a9ff44d7b3726de51fa9e3bfb60d7e (patch)
tree68a77f89f77c478bd6ab029cc5cd087d2e4db3f5 /src/test/ui/imports
parent21882aad7299e8e859785845ac12374990f24dae (diff)
downloadrust-043d4615f2a9ff44d7b3726de51fa9e3bfb60d7e.tar.gz
rust-043d4615f2a9ff44d7b3726de51fa9e3bfb60d7e.zip
use correct casing for rename suggestions
If the original name is uppercase, use camel case. Otherwise, use snake
case.
Diffstat (limited to 'src/test/ui/imports')
-rw-r--r--src/test/ui/imports/duplicate.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/imports/duplicate.stderr b/src/test/ui/imports/duplicate.stderr
index a74401314a1..6e5b91a11c9 100644
--- a/src/test/ui/imports/duplicate.stderr
+++ b/src/test/ui/imports/duplicate.stderr
@@ -9,8 +9,8 @@ error[E0252]: the name `foo` is defined multiple times
    = note: `foo` must be defined only once in the value namespace of this module
 help: You can use `as` to change the binding name of the import
    |
-25 |     use a::foo as Otherfoo; //~ ERROR the name `foo` is defined multiple times
-   |         ^^^^^^^^^^^^^^^^^^
+25 |     use a::foo as other_foo; //~ ERROR the name `foo` is defined multiple times
+   |         ^^^^^^^^^^^^^^^^^^^
 
 error[E0659]: `foo` is ambiguous
   --> $DIR/duplicate.rs:56:9