about summary refs log tree commit diff
path: root/tests/ui/entry-point/return-ty-has-bound-vars.stderr
blob: e7aab839f3171e6dd4f4b0b19f6a708da758ad93 (plain)
1
2
3
4
5
6
7
8
9
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`.