Skip to content

Commit e04a185

Browse files
committed
Relocate issues/issue-51022.rs to
entry-point/main-with-lifetime-param.rs fix tidy
1 parent 6840234 commit e04a185

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/51022>
2+
3+
fn main<'a>() {}
4+
//~^ ERROR `main` function is not allowed to have generic parameters [E0131]

tests/ui/issues/issue-51022.stderr renamed to tests/ui/entry-point/main-with-lifetime-param.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0131]: `main` function is not allowed to have generic parameters
2-
--> $DIR/issue-51022.rs:1:8
2+
--> $DIR/main-with-lifetime-param.rs:3:8
33
|
4-
LL | fn main<'a>() { }
4+
LL | fn main<'a>() {}
55
| ^^^^ `main` cannot have generic parameters
66

77
error: aborting due to 1 previous error

tests/ui/issues/issue-51022.rs

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)