warning: elided lifetime has a name --> $DIR/not-tied-to-crate.rs:5:31 | LL | fn bar(x: &'static u8) -> &u8 { | ^ this elided lifetime gets resolved as `'static` | note: the lint level is defined here --> $DIR/not-tied-to-crate.rs:3:8 | LL | #[warn(elided_named_lifetimes)] | ^^^^^^^^^^^^^^^^^^^^^^ help: consider specifying it explicitly | LL | fn bar(x: &'static u8) -> &'static u8 { | +++++++ error: elided lifetime has a name --> $DIR/not-tied-to-crate.rs:11:31 | LL | fn baz(x: &'static u8) -> &u8 { | ^ this elided lifetime gets resolved as `'static` | note: the lint level is defined here --> $DIR/not-tied-to-crate.rs:10:12 | LL | #[deny(elided_named_lifetimes)] | ^^^^^^^^^^^^^^^^^^^^^^ help: consider specifying it explicitly | LL | fn baz(x: &'static u8) -> &'static u8 { | +++++++ error: aborting due to 1 previous error; 1 warning emitted