fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
663 B19 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
6help: if the original crate name uses dashes you need to use underscores in the code
7   |
8LL | extern crate krate_name_here;
9   |                   ^    ^
10
11error[E0463]: can't find crate for `krate_name_here`
12  --> $DIR/bad-crate-name.rs:1:1
13   |
14LL | extern crate krate-name-here;
15   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0463`.