rust/tests/ui/entry-point/return-ty-has-bound-vars.stderr
2023-12-23 00:09:37 +08:00

10 lines
329 B
Plaintext

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