summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/redundant_static_lifetimes_multiple.stderr
blob: bf4d211200f3c5b837463dec9b1d20019f5d1927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: constants have by default a `'static` lifetime
  --> $DIR/redundant_static_lifetimes_multiple.rs:4:18
   |
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`
   = help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`

error: constants have by default a `'static` lifetime
  --> $DIR/redundant_static_lifetimes_multiple.rs:4:30
   |
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
  --> $DIR/redundant_static_lifetimes_multiple.rs:9: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
  --> $DIR/redundant_static_lifetimes_multiple.rs:9: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
  --> $DIR/redundant_static_lifetimes_multiple.rs:13:40
   |
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
  --> $DIR/redundant_static_lifetimes_multiple.rs:13:55
   |
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
  --> $DIR/redundant_static_lifetimes_multiple.rs:17:26
   |
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
  --> $DIR/redundant_static_lifetimes_multiple.rs:17:38
   |
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
  --> $DIR/redundant_static_lifetimes_multiple.rs:21: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
  --> $DIR/redundant_static_lifetimes_multiple.rs:21: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