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 Permalink Normal View History

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