fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
438 B18 linesraw
1// aux-build:edition-lint-paths.rs
2// run-rustfix
3
4// Oddball: crate is renamed, making it harder for us to rewrite
5// paths. We don't (and we leave the `extern crate` in place).
6
7#![feature(rust_2018_preview)]
8#![deny(absolute_paths_not_starting_with_crate)]
9
10extern crate edition_lint_paths as my_crate;
11
12use crate::my_crate::foo;
13//~^ ERROR absolute paths must start
14//~| WARNING this was previously accepted
15
16fn main() {
17    foo();
18}