2020-08-11 08:43:21 -05:00
|
|
|
error: constants have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:4:18
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
|
2019-09-25 12:21:08 -05:00
|
|
|
| -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`
|
2019-09-25 12:21:08 -05:00
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: constants have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:4:30
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
|
2019-09-25 12:21:08 -05:00
|
|
|
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: constants have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:9:29
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
|
|
|
LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
|
|
|
| -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: constants have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:9:39
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
|
|
|
LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
|
|
|
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: statics have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:13:40
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
|
2019-09-25 12:21:08 -05:00
|
|
|
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: statics have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:13:55
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
|
2019-09-25 12:21:08 -05:00
|
|
|
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: statics have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:17:26
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
|
2019-09-25 12:21:08 -05:00
|
|
|
| -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: statics have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:17:38
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
|
2019-09-25 12:21:08 -05:00
|
|
|
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: statics have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:21:37
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
|
|
|
LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
|
|
|
| -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: statics have by default a `'static` lifetime
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/redundant_static_lifetimes_multiple.rs:21:47
|
2019-09-25 12:21:08 -05:00
|
|
|
|
|
|
|
|
LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
|
|
|
|
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|