]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/redundant_static_lifetimes_multiple.stderr
Rollup merge of #98111 - eggyal:issue-97982, r=GuillaumeGomez
[rust.git] / src / tools / clippy / tests / ui / redundant_static_lifetimes_multiple.stderr
1 error: constants have by default a `'static` lifetime
2   --> $DIR/redundant_static_lifetimes_multiple.rs:3:18
3    |
4 LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
5    |                 -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
6    |
7    = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
8
9 error: constants have by default a `'static` lifetime
10   --> $DIR/redundant_static_lifetimes_multiple.rs:3:30
11    |
12 LL | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
13    |                             -^^^^^^^---- help: consider removing `'static`: `&str`
14
15 error: constants have by default a `'static` lifetime
16   --> $DIR/redundant_static_lifetimes_multiple.rs:5:29
17    |
18 LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
19    |                            -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
20
21 error: constants have by default a `'static` lifetime
22   --> $DIR/redundant_static_lifetimes_multiple.rs:5:39
23    |
24 LL | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
25    |                                      -^^^^^^^---- help: consider removing `'static`: `&str`
26
27 error: statics have by default a `'static` lifetime
28   --> $DIR/redundant_static_lifetimes_multiple.rs:7:40
29    |
30 LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
31    |                                       -^^^^^^^---- help: consider removing `'static`: `&str`
32
33 error: statics have by default a `'static` lifetime
34   --> $DIR/redundant_static_lifetimes_multiple.rs:7:55
35    |
36 LL | static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
37    |                                                      -^^^^^^^---- help: consider removing `'static`: `&str`
38
39 error: statics have by default a `'static` lifetime
40   --> $DIR/redundant_static_lifetimes_multiple.rs:9:26
41    |
42 LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
43    |                         -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
44
45 error: statics have by default a `'static` lifetime
46   --> $DIR/redundant_static_lifetimes_multiple.rs:9:38
47    |
48 LL | static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
49    |                                     -^^^^^^^---- help: consider removing `'static`: `&str`
50
51 error: statics have by default a `'static` lifetime
52   --> $DIR/redundant_static_lifetimes_multiple.rs:11:37
53    |
54 LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
55    |                                    -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
56
57 error: statics have by default a `'static` lifetime
58   --> $DIR/redundant_static_lifetimes_multiple.rs:11:47
59    |
60 LL | static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
61    |                                              -^^^^^^^---- help: consider removing `'static`: `&str`
62
63 error: aborting due to 10 previous errors
64