summaryrefslogtreecommitdiffstats
path: root/tests/ui/entry-point/imported_main_conflict.rs
blob: e8c70b06513c28b59bd14e072ce4a2db784b7264 (plain)
1
2
3
4
5
6
7
#![feature(imported_main)]
//~^ ERROR `main` is ambiguous
mod m1 { pub(crate) fn main() {} }
mod m2 { pub(crate) fn main() {} }

use m1::*;
use m2::*;