about summary refs log tree commit diff
path: root/tests/ui/extern-flag/invalid-crate-name-dashed.rs
blob: bbf473cc5142f88fc32ababe77590689649656d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ compile-flags: --extern=my-awesome-library=libawesome.rlib

// In a sense, this is a regression test for issue #113035. We no longer suggest
// `pub use my-awesome-library::*;` (sic!) as we outright ban this crate name.

pub use my_awesome_library::*;

fn main() {}

//~? ERROR crate name `my-awesome-library` passed to `--extern` is not a valid ASCII identifier
//~? HELP consider replacing the dashes with underscores: `my_awesome_library`