2024-08-31 15:31:31 +03:00
|
|
|
error: elided lifetime has a name
|
|
|
|
|
--> $DIR/example-from-issue48686.rs:6:50
|
|
|
|
|
|
|
|
|
|
|
LL | pub fn get_mut(&'static self, x: &mut u8) -> &mut u8 {
|
|
|
|
|
| ^ this elided lifetime gets resolved as `'static`
|
|
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
|
--> $DIR/example-from-issue48686.rs:1:9
|
|
|
|
|
|
|
|
|
|
|
LL | #![deny(elided_named_lifetimes)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2024-09-01 03:42:18 +03:00
|
|
|
help: consider specifying it explicitly
|
|
|
|
|
|
|
|
|
|
|
LL | pub fn get_mut(&'static self, x: &mut u8) -> &'static mut u8 {
|
2024-09-01 04:08:55 +03:00
|
|
|
| +++++++
|
2024-08-31 15:31:31 +03:00
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|