summary refs log tree commit diff
path: root/src/test/ui/main-wrong-location.rs
blob: f3acd80a7a48f0797a456bbd2b16794a135bcade (plain)
1
2
3
4
5
6
mod m {
//~^ ERROR `main` function not found
    // An inferred main entry point
    // must appear at the top of the crate
    fn main() { }
}