summary refs log tree commit diff
path: root/tests/ui/elided-test.rs
blob: 025b75c1b5c87c3f02b55b99845d2644dd4b9cb1 (plain)
1
2
3
4
5
6
7
//@ error-pattern: `main` function not found

// Since we're not compiling a test runner this function should be elided
// and the build will fail because main doesn't exist
#[test]
fn main() {
}