rust/tests/ui/test-attrs/test-runner-hides-main.rs
2024-02-16 20:02:50 +00:00

6 lines
148 B
Rust

//@ run-pass
//@ compile-flags:--test
// Building as a test runner means that a synthetic main will be run,
// not ours
pub fn main() { panic!(); }