11error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
2- --> $DIR/edition-lint-fully-qualified-paths.rs:18 :25
2+ --> $DIR/edition-lint-fully-qualified-paths.rs:19 :25
33 |
44LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
55 | ^^^^^^^^^^ help: use `crate`: `crate::foo::Foo`
66 |
77 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
88 = note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
99note: the lint level is defined here
10- --> $DIR/edition-lint-fully-qualified-paths.rs:3 :9
10+ --> $DIR/edition-lint-fully-qualified-paths.rs:4 :9
1111 |
1212LL | #![deny(absolute_paths_not_starting_with_crate)]
1313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
1515error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
16- --> $DIR/edition-lint-fully-qualified-paths.rs:18 :25
16+ --> $DIR/edition-lint-fully-qualified-paths.rs:19 :25
1717 |
1818LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
1919 | ^^^^^^^^^^ help: use `crate`: `crate::foo::Foo`
@@ -23,7 +23,7 @@ LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
2323 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
2424
2525error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
26- --> $DIR/edition-lint-fully-qualified-paths.rs:24 :13
26+ --> $DIR/edition-lint-fully-qualified-paths.rs:25 :13
2727 |
2828LL | let _: <::foo::Baz as foo::Foo>::Bar = ();
2929 | ^^^^^^^^^^ help: use `crate`: `crate::foo::Baz`
0 commit comments