]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bad-crate-name.stderr
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[rust.git] / src / test / ui / parser / bad-crate-name.stderr
1 error: crate name using dashes are not valid in `extern crate` statements
2   --> $DIR/bad-crate-name.rs:1:14
3    |
4 LL | extern crate krate-name-here;
5    |              ^^^^^^^^^^^^^^^ dash-separated idents are not valid
6    |
7 help: if the original crate name uses dashes you need to use underscores in the code
8    |
9 LL | extern crate krate_name_here;
10    |                   ~    ~
11
12 error[E0463]: can't find crate for `krate_name_here`
13   --> $DIR/bad-crate-name.rs:1:1
14    |
15 LL | extern crate krate-name-here;
16    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0463`.