Auto merge of #51108 - simartin:issue_51022_follow-up, r=estebank
Address comments in pull request #51084. This is a follow-up to https://github.com/rust-lang/rust/pull/51084, that's already been integrated into mainline.
This commit is contained in:
commit
f9f66c134a
2 changed files with 10 additions and 1 deletions
|
@ -8,5 +8,5 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern: `main` function is not allowed to have lifetime parameters
|
||||
fn main<'a>() { }
|
||||
//~^ ERROR `main` function is not allowed to have lifetime parameters [E0131]
|
9
src/test/ui/issue-51022.stderr
Normal file
9
src/test/ui/issue-51022.stderr
Normal file
|
@ -0,0 +1,9 @@
|
|||
error[E0131]: `main` function is not allowed to have lifetime parameters
|
||||
--> $DIR/issue-51022.rs:11:8
|
||||
|
|
||||
LL | fn main<'a>() { }
|
||||
| ^^^^ `main` cannot have lifetime parameters
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0131`.
|
Loading…
Add table
Add a link
Reference in a new issue