rust/tests/ui/entry-point/main-in-submodule.rs
reddevilmidzy a5dc701e74 Relocate some tests and remove fn-main directory
Relocate issues/issue-51022.rs to
entry-point/main-with-lifetime-param.rs

Relocate issue-50714.rs to entry-point/main-where-fn-bound.rs

Rename issue-118772.rs to main-with-invalid-signature.rs and delete
duplicate test

remove ui/entry-point/issue-118772.rs in issues.txt

Relocate fn-main/wrong-location.rs to entry-point/main-in-submodule.rs

Remove fn-main directory

Relocate issue-50688.rs to mismatched_types/array-len-is-closure.rs
2025-11-27 20:11:00 +09:00

5 lines
143 B
Rust

mod m {
// An inferred main entry point
// must appear at the top of the crate
fn main() { }
} //~ ERROR `main` function not found