rust/tests/ui/test-attrs/test-main-not-dead-attr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
122 B
Rust
Raw Normal View History

// run-pass
// compile-flags: --test
2021-04-08 21:37:38 +08:00
#![feature(rustc_attrs)]
#![deny(dead_code)]
2021-04-08 21:37:38 +08:00
#[rustc_main]
fn foo() { panic!(); }