aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/expected_named.stderr
blob: 0068bdf3666e1c3a5c04a1b571a38ccdbd67bc38 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0106]: missing lifetime specifier
 --> tests/ui/expected_named.rs:5:36
  |
5 |         fn borrowed() -> UniquePtr<Borrowed>;
  |                                    ^^^^^^^^ expected named lifetime parameter
  |
  = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
help: consider using the `'static` lifetime
  |
5 |         fn borrowed() -> UniquePtr<Borrowed<'static>>;
  |                                            +++++++++