diff options
Diffstat (limited to 'tests/ui/entry-point/imported_main_conflict.rs')
-rw-r--r-- | tests/ui/entry-point/imported_main_conflict.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/entry-point/imported_main_conflict.rs b/tests/ui/entry-point/imported_main_conflict.rs new file mode 100644 index 000000000..e8c70b065 --- /dev/null +++ b/tests/ui/entry-point/imported_main_conflict.rs @@ -0,0 +1,7 @@ +#![feature(imported_main)] +//~^ ERROR `main` is ambiguous +mod m1 { pub(crate) fn main() {} } +mod m2 { pub(crate) fn main() {} } + +use m1::*; +use m2::*; |