rust/tests/ui/test-attrs/test-runner-hides-buried-main.rs

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

16 lines
202 B
Rust
Raw Normal View History

// run-pass
// compile-flags: --test
2021-04-08 08:37:38 -05:00
#![feature(rustc_attrs)]
#![allow(dead_code)]
mod a {
fn b() {
(|| {
2021-04-08 08:37:38 -05:00
#[rustc_main]
fn c() { panic!(); }
})();
}
}