rust/tests/ui/entry-point/return-ty-has-bound-vars.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
329 B
Plaintext
Raw Normal View History

2023-12-22 23:25:54 +08:00
error[E0131]: `main` function return type is not allowed to have generic parameters
2023-12-23 00:09:37 +08:00
--> $DIR/return-ty-has-bound-vars.rs:3:28
2023-12-22 23:25:54 +08:00
|
2023-12-23 00:09:37 +08:00
LL | fn main<'a>(_: &'a i32) -> &'a () { &() }
| ^^^^^^
2023-12-22 23:25:54 +08:00
2023-12-23 00:09:37 +08:00
error: aborting due to 1 previous error
2023-12-22 23:25:54 +08:00
2023-12-23 00:09:37 +08:00
For more information about this error, try `rustc --explain E0131`.