Skip to content

Commit ab51fa2

Browse files
committed
Relocate fn-main/wrong-location.rs to entry-point/main-in-submodule.rs
1 parent 82b0ce3 commit ab51fa2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/fn-main/wrong-location.stderr renamed to tests/ui/entry-point/main-in-submodule.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
error[E0601]: `main` function not found in crate `wrong_location`
2-
--> $DIR/wrong-location.rs:5:2
1+
error[E0601]: `main` function not found in crate `main_in_submodule`
2+
--> $DIR/main-in-submodule.rs:5:2
33
|
44
LL | }
5-
| ^ the main function must be defined at the crate level (in `$DIR/wrong-location.rs`)
5+
| ^ the main function must be defined at the crate level (in `$DIR/main-in-submodule.rs`)
66
|
77
note: here is a function named `main`
8-
--> $DIR/wrong-location.rs:4:5
8+
--> $DIR/main-in-submodule.rs:4:5
99
|
1010
LL | fn main() { }
1111
| ^^^^^^^^^

0 commit comments

Comments
 (0)