You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
492 B
12 lines
492 B
7 months ago
|
error[E0106]: missing lifetime specifier
|
||
|
--> $DIR/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>>;
|
||
|
| ^^^^^^^^^^^^^^^^^
|