]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error: crate name using dashes are not valid in `extern crate` statements |
0731742a | 2 | --> $DIR/bad-crate-name.rs:1:14 |
8faf50e0 XL |
3 | | |
4 | LL | extern crate krate-name-here; | |
5 | | ^^^^^^^^^^^^^^^ dash-separated idents are not valid | |
e74abb32 | 6 | | |
8faf50e0 XL |
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` | |
0731742a | 13 | --> $DIR/bad-crate-name.rs:1:1 |
8faf50e0 XL |
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`. |