rust/src/test/ui/crate-name-mismatch.rs
2018-12-25 21:08:33 -07:00

7 lines
158 B
Rust

// compile-flags: --crate-name foo
#![crate_name = "bar"]
//~^ ERROR: --crate-name and #[crate_name] are required to match, but `foo` != `bar`
fn main() {}