fork/rust

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

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

1.43.0
668 B20 linesraw
1error: crate name using dashes are not valid in `extern crate` statements
2  --> $DIR/bad-crate-name.rs:1:14
3   |
4LL | extern crate krate-name-here;
5   |              ^^^^^^^^^^^^^^^ dash-separated idents are not valid
6   |
7help: if the original crate name uses dashes you need to use underscores in the code
8   |
9LL | extern crate krate_name_here;
10   |                   ^    ^
11
12error[E0463]: can't find crate for `krate_name_here`
13  --> $DIR/bad-crate-name.rs:1:1
14   |
15LL | extern crate krate-name-here;
16   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0463`.