mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-27 01:11:38 +00:00
12 lines
496 B
Plaintext
12 lines
496 B
Plaintext
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>>;
|
|
| +++++++++
|