mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 18:33:24 +00:00
12 lines
265 B
Rust
12 lines
265 B
Rust
//! 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() {
|
|
let stderr = run_cargo_component_cmd!();
|
|
assert!(stderr.contains("duplicate library names"));
|
|
}
|