Skip to content

Commit f9f66c1

Browse files
committed
Auto merge of #51108 - simartin:issue_51022_follow-up, r=estebank
Address comments in pull request #51084. This is a follow-up to #51084, that's already been integrated into mainline.
2 parents dcb4056 + 9bb939d commit f9f66c1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/test/compile-fail/issue-51022.rs renamed to src/test/ui/issue-51022.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: `main` function is not allowed to have lifetime parameters
1211
fn main<'a>() { }
12+
//~^ ERROR `main` function is not allowed to have lifetime parameters [E0131]

src/test/ui/issue-51022.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0131]: `main` function is not allowed to have lifetime parameters
2+
--> $DIR/issue-51022.rs:11:8
3+
|
4+
LL | fn main<'a>() { }
5+
| ^^^^ `main` cannot have lifetime parameters
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0131`.

0 commit comments

Comments
 (0)