Update ui tests for leading-underscore suggestion
This commit is contained in:
parent
08fe940f0a
commit
9af96745d6
2 changed files with 5 additions and 3 deletions
|
@ -7,7 +7,7 @@ LL | macro_rules! _a {
|
||||||
LL | format_args!(a!());
|
LL | format_args!(a!());
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
help: a macro with a similar name exists, consider renaming `_a` into `a`
|
help: the leading underscore in `_a` marks it as unused, consider renaming it to `a`
|
||||||
|
|
|
|
||||||
LL | macro_rules! a {
|
LL | macro_rules! a {
|
||||||
| ~
|
| ~
|
||||||
|
@ -21,7 +21,7 @@ LL | macro_rules! _a {
|
||||||
LL | env!(a!());
|
LL | env!(a!());
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
help: a macro with a similar name exists, consider renaming `_a` into `a`
|
help: the leading underscore in `_a` marks it as unused, consider renaming it to `a`
|
||||||
|
|
|
|
||||||
LL | macro_rules! a {
|
LL | macro_rules! a {
|
||||||
| ~
|
| ~
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
error[E0425]: cannot find value `x` in this scope
|
error[E0425]: cannot find value `x` in this scope
|
||||||
--> $DIR/silenced-binding-typo.rs:4:14
|
--> $DIR/silenced-binding-typo.rs:4:14
|
||||||
|
|
|
|
||||||
|
LL | let _x = 42;
|
||||||
|
| -- `_x` defined here
|
||||||
LL | let _y = x;
|
LL | let _y = x;
|
||||||
| ^
|
| ^
|
||||||
|
|
|
|
||||||
help: a local variable with a similar name exists, consider renaming `_x` into `x`
|
help: the leading underscore in `_x` marks it as unused, consider renaming it to `x`
|
||||||
|
|
|
|
||||||
LL | let x = 42;
|
LL | let x = 42;
|
||||||
| ~
|
| ~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue