35 lines
1.5 KiB
Plaintext
35 lines
1.5 KiB
Plaintext
|
error: Absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||
|
--> $DIR/edition-lint-paths.rs:16:9
|
||
|
|
|
||
|
LL | use ::bar::Bar;
|
||
|
| ^^^^^^^^^^ help: use `crate`: `crate::bar::Bar`
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/edition-lint-paths.rs:12:9
|
||
|
|
|
||
|
LL | #![deny(absolute_path_starting_with_module)]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
= 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
|
||
|
|
||
|
error: Absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||
|
--> $DIR/edition-lint-paths.rs:24:5
|
||
|
|
|
||
|
LL | use bar::Bar;
|
||
|
| ^^^^^^^^ help: use `crate`: `crate::bar::Bar`
|
||
|
|
|
||
|
= 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
|
||
|
|
||
|
error: Absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||
|
--> $DIR/edition-lint-paths.rs:35:13
|
||
|
|
|
||
|
LL | let x = ::bar::Bar;
|
||
|
| ^^^^^^^^^^ help: use `crate`: `crate::bar::Bar`
|
||
|
|
|
||
|
= 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
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|