warning: Absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> src/main.rs:4:11
|
4 | use foo::{a, b};
| ^ help: use `crate`: `crate::a`
|
note: lint level defined here
--> src/main.rs:1:9
|
1 | #![warn(rust_2018_breakage)]
| ^^^^^^^^^^^^^^^^^^
= note: #[warn(absolute_path_starting_with_module)] implied by #[warn(rust_2018_breakage)]
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
= note: for more information, see issue TBD
warning: Absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> src/main.rs:4:14
|
4 | use foo::{a, b};
| ^ help: use `crate`: `crate::b`
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
= note: for more information, see issue TBD
but when rustfix automatically applies the suggestions they end up breaking compilation because the suggested fix isn't syntactically valid
The following code:
yields:
but when rustfix automatically applies the suggestions they end up breaking compilation because the suggested fix isn't syntactically valid