mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 00:13:02 +00:00
27 lines
789 B
Plaintext
27 lines
789 B
Plaintext
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)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
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)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error; 1 warning emitted
|
|
|