Address comments in pull request #51084.
This commit is contained in:
parent
7d218fc72f
commit
9bb939d610
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