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

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

4 lines
138 B
Rust
Raw Normal View History

2023-12-22 09:25:54 -06:00
// issue-119209
2023-12-22 10:09:37 -06:00
fn main<'a>(_: &'a i32) -> &'a () { &() } //~ERROR `main` function return type is not allowed to have generic parameters