rust-clippy/tests/ui/redundant_static_lifetimes_multiple.stderr

65 lines
3.4 KiB
Text
Raw Normal View History

error: constants have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:4:18
|
2023-04-20 15:19:36 +00:00
LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
| -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
|
= note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
error: constants have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:4:30
|
2023-04-20 15:19:36 +00:00
LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
| -^^^^^^^---- help: consider removing `'static`: `&str`
error: constants have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:6:29
|
LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
| -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
error: constants have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:6:39
|
LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
| -^^^^^^^---- help: consider removing `'static`: `&str`
error: statics have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:8:40
|
2023-04-20 15:19:36 +00:00
LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
| -^^^^^^^---- help: consider removing `'static`: `&str`
error: statics have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:8:55
|
2023-04-20 15:19:36 +00:00
LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
| -^^^^^^^---- help: consider removing `'static`: `&str`
error: statics have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:10:26
|
2023-04-20 15:19:36 +00:00
LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
| -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
error: statics have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:10:38
|
2023-04-20 15:19:36 +00:00
LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
| -^^^^^^^---- help: consider removing `'static`: `&str`
error: statics have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:12:37
|
LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
| -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
error: statics have by default a `'static` lifetime
2023-07-27 11:40:22 +00:00
--> $DIR/redundant_static_lifetimes_multiple.rs:12:47
|
LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
| -^^^^^^^---- help: consider removing `'static`: `&str`
error: aborting due to 10 previous errors