diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-51022.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-51022.stderr b/src/test/ui/issues/issue-51022.stderr new file mode 100644 index 000000000..5e196bd4e --- /dev/null +++ b/src/test/ui/issues/issue-51022.stderr @@ -0,0 +1,9 @@ +error[E0131]: `main` function is not allowed to have generic parameters + --> $DIR/issue-51022.rs:1:8 + | +LL | fn main<'a>() { } + | ^^^^ `main` cannot have generic parameters + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0131`. |