Bring attention to suggestions when the only difference is capitalization
This commit is contained in:
parent
898f36c83c
commit
4bb771615e
38 changed files with 121 additions and 71 deletions
|
|
@ -2,7 +2,7 @@ error[E0532]: expected tuple struct/variant, found function `foo`
|
|||
--> $DIR/issue-10200.rs:6:9
|
||||
|
|
||||
LL | foo(x)
|
||||
| ^^^ help: a tuple struct with a similar name exists: `Foo`
|
||||
| ^^^ help: a tuple struct with a similar name exists (notice the capitalization): `Foo`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ LL | use std::prelude::v1::Result;
|
|||
|
|
||||
LL | use std::result::Result;
|
||||
|
|
||||
and 1 other candidates
|
||||
and 1 other candidates
|
||||
|
||||
error[E0573]: expected type, found variant `Result`
|
||||
--> $DIR/issue-17546.rs:28:13
|
||||
|
|
@ -44,7 +44,7 @@ LL | use std::prelude::v1::Result;
|
|||
|
|
||||
LL | use std::result::Result;
|
||||
|
|
||||
and 1 other candidates
|
||||
and 1 other candidates
|
||||
|
||||
error[E0573]: expected type, found variant `NoResult`
|
||||
--> $DIR/issue-17546.rs:33:15
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ error: constant `foo` should have an upper case name
|
|||
--> $DIR/issue-17718-const-naming.rs:4:7
|
||||
|
|
||||
LL | const foo: isize = 3;
|
||||
| ^^^ help: convert the identifier to upper case: `FOO`
|
||||
| ^^^ help: convert the identifier to upper case (notice the capitalization): `FOO`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/issue-17718-const-naming.rs:2:9
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error[E0422]: cannot find struct, variant or union type `TyUInt` in this scope
|
|||
--> $DIR/issue-46332.rs:9:5
|
||||
|
|
||||
LL | TyUInt {};
|
||||
| ^^^^^^ help: a struct with a similar name exists: `TyUint`
|
||||
| ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `TyUint`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue