Files
2026-08-01 16:11:49 +03:00

11 lines
381 B
Plaintext

error[E0621]: explicit lifetime required in the type of `s`
--> tests/ui/short-lifetime.rs:9:48
|
9 | pub fn ref_cast<'a>(s: &String) -> &'a Self;
| ^ lifetime `'a` required
|
help: add explicit lifetime `'a` to the type of `s`
|
9 | pub fn ref_cast<'a>(s: &'a String) -> &'a Self;
| ++