2023-02-07 08:05:21 +00:00
|
|
|
//! This test checks that if two components have same name, the compiler will panic.
|
|
|
|
|
|
|
|
|
|
#![feature(once_cell)]
|
|
|
|
|
|
|
|
|
|
mod test_utils;
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn duplicate_lib_name() {
|
2023-03-08 07:42:21 +00:00
|
|
|
let stderr = run_cargo_component_cmd!();
|
2023-02-07 08:05:21 +00:00
|
|
|
assert!(stderr.contains("duplicate library names"));
|
|
|
|
|
}
|