1 error: Constants have by default a `'static` lifetime
2 --> $DIR/const_static_lifetime.rs:13:17
4 13 | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static.
5 | -^^^^^^^---- help: consider removing `'static`: `&str`
7 = note: `-D clippy::const-static-lifetime` implied by `-D warnings`
9 error: Constants have by default a `'static` lifetime
10 --> $DIR/const_static_lifetime.rs:17:21
12 17 | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
13 | -^^^^^^^---- help: consider removing `'static`: `&str`
15 error: Constants have by default a `'static` lifetime
16 --> $DIR/const_static_lifetime.rs:19:32
18 19 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
19 | -^^^^^^^---- help: consider removing `'static`: `&str`
21 error: Constants have by default a `'static` lifetime
22 --> $DIR/const_static_lifetime.rs:19:47
24 19 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
25 | -^^^^^^^---- help: consider removing `'static`: `&str`
27 error: Constants have by default a `'static` lifetime
28 --> $DIR/const_static_lifetime.rs:21:18
30 21 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
31 | -^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]]`
33 error: Constants have by default a `'static` lifetime
34 --> $DIR/const_static_lifetime.rs:21:30
36 21 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
37 | -^^^^^^^---- help: consider removing `'static`: `&str`
39 error: Constants have by default a `'static` lifetime
40 --> $DIR/const_static_lifetime.rs:23:17
42 23 | const VAR_SIX: &'static u8 = &5;
43 | -^^^^^^^--- help: consider removing `'static`: `&u8`
45 error: Constants have by default a `'static` lifetime
46 --> $DIR/const_static_lifetime.rs:25:29
48 25 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
49 | -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
51 error: Constants have by default a `'static` lifetime
52 --> $DIR/const_static_lifetime.rs:25:39
54 25 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
55 | -^^^^^^^---- help: consider removing `'static`: `&str`
57 error: Constants have by default a `'static` lifetime
58 --> $DIR/const_static_lifetime.rs:27:20
60 27 | const VAR_HEIGHT: &'static Foo = &Foo {};
61 | -^^^^^^^---- help: consider removing `'static`: `&Foo`
63 error: Constants have by default a `'static` lifetime
64 --> $DIR/const_static_lifetime.rs:29:19
66 29 | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static.
67 | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
69 error: Constants have by default a `'static` lifetime
70 --> $DIR/const_static_lifetime.rs:31:19
72 31 | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
73 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
75 error: Constants have by default a `'static` lifetime
76 --> $DIR/const_static_lifetime.rs:33:19
78 33 | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
79 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
81 error: aborting due to 13 previous errors