]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rust-2018/extern-crate-rename.fixed
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / rust-2018 / extern-crate-rename.fixed
CommitLineData
94b46f34
XL
1// aux-build:edition-lint-paths.rs
2// run-rustfix
83c7162d 3
94b46f34
XL
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
136023e0 14//~| WARNING this is accepted in the current edition
041b39d2 15
7453a54e 16fn main() {
94b46f34 17 foo();
223e47cc 18}