1
Fork 0

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:
bors 2018-05-27 18:08:26 +00:00
commit f9f66c134a
2 changed files with 10 additions and 1 deletions

View file

@ -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]

View 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`.