Instead of modifying the item's span synthesize it
This commit is contained in:
parent
c39ad4b145
commit
445e404ba4
4 changed files with 12 additions and 6 deletions
|
|
@ -10,3 +10,4 @@
|
|||
|
||||
extern crate std;
|
||||
fn main() {}
|
||||
//~^^ ERROR the name `std` is defined multiple times [E0259]
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ error[E0259]: the name `std` is defined multiple times
|
|||
--> $DIR/issue-45799-bad-extern-crate-rename-suggestion-formatting.rs:11:1
|
||||
|
|
||||
11 | extern crate std;
|
||||
| ^^^^^^^^^^^^^^^^ `std` reimported here
|
||||
| ^^^^^^^^^^^^^^^^^ `std` reimported here
|
||||
|
|
||||
= note: `std` must be defined only once in the type namespace of this module
|
||||
help: You can use `as` to change the binding name of the import
|
||||
|
|
||||
11 | extern crate std as Otherstd;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue