1 // error-pattern: `main` function not found
2 
3 // Since we're not compiling a test runner this function should be elided
4 // and the build will fail because main doesn't exist
5 #[test]
main()6 fn main() {
7 }
8