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
124 B
Rust
Raw Normal View History

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