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)] | |
| ^^^^^^^^^^^^^^^^^^^^^^ | |
help: consider specifying it explicitly | |
| | |
LL | pub fn get_mut(&'static self, x: &mut u8) -> &'static mut u8 { | |
| +++++++ | |
error: aborting due to 1 previous error | |