Created
March 14, 2026 20:29
-
-
Save Binary-Eater/bc42152625b1d4ae60fc6c2721307890 to your computer and use it in GitHub Desktop.
Rust lifetime error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error[E0106]: missing lifetime specifier | |
| --> rust/kernel/hid.rs:389:73 | |
| | | |
| 389 | ...p(_hdev: &Device<device::Core>, _rdesc: &mut [u8]) -> &[u8] { | |
| | --------------------- --------- ^ expected named lifetime parameter | |
| | | |
| = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `_hdev` or `_rdesc` | |
| help: consider introducing a named lifetime parameter | |
| | | |
| 389 | fn report_fixup<'a>(_hdev: &'a Device<device::Core>, _rdesc: &'a mut [u8]) -> &'a [u8] { | |
| | ++++ ++ ++ ++ | |
Binary-Eater
commented
Mar 14, 2026
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment