]> git.proxmox.com Git - rustc.git/blame - src/test/ui/bad/bad-crate-name.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / test / ui / bad / bad-crate-name.stderr
CommitLineData
8faf50e0 1error: crate name using dashes are not valid in `extern crate` statements
0731742a 2 --> $DIR/bad-crate-name.rs:1:14
8faf50e0
XL
3 |
4LL | extern crate krate-name-here;
5 | ^^^^^^^^^^^^^^^ dash-separated idents are not valid
e74abb32 6 |
8faf50e0
XL
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`
0731742a 13 --> $DIR/bad-crate-name.rs:1:1
8faf50e0
XL
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`.