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

4 lines
138 B
Rust

// issue-119209
fn main<'a>(_: &'a i32) -> &'a () { &() } //~ERROR `main` function return type is not allowed to have generic parameters