Add span label to primary error span
This commit is contained in:
parent
52fbd3e569
commit
94bbd46682
25 changed files with 76 additions and 80 deletions
|
|
@ -2,7 +2,7 @@ error[E0615]: attempted to take value of method `method` on type `Foo`
|
|||
--> $DIR/E0615.rs:11:7
|
||||
|
|
||||
LL | f.method;
|
||||
| ^^^^^^
|
||||
| ^^^^^^ method, not a field
|
||||
|
|
||||
help: use parentheses to call the method
|
||||
|
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0616]: field `x` of struct `a::Foo` is private
|
||||
--> $DIR/E0616.rs:13:5
|
||||
--> $DIR/E0616.rs:13:7
|
||||
|
|
||||
LL | f.x;
|
||||
| ^^^
|
||||
| ^ private field
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0616]: field `0` of struct `a::Foo` is private
|
||||
--> $DIR/ex-E0611.rs:11:4
|
||||
--> $DIR/ex-E0611.rs:11:6
|
||||
|
|
||||
LL | y.0;
|
||||
| ^^^
|
||||
| ^ private field
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue