1 error: constants have by default a `'static` lifetime
2 --> $DIR/redundant_static_lifetimes.rs:8:17
4 LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static.
5 | -^^^^^^^---- help: consider removing `'static`: `&str`
7 = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
9 error: constants have by default a `'static` lifetime
10 --> $DIR/redundant_static_lifetimes.rs:12:21
12 LL | 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/redundant_static_lifetimes.rs:14:32
18 LL | 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/redundant_static_lifetimes.rs:14:47
24 LL | 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/redundant_static_lifetimes.rs:16:17
30 LL | const VAR_SIX: &'static u8 = &5;
31 | -^^^^^^^--- help: consider removing `'static`: `&u8`
33 error: constants have by default a `'static` lifetime
34 --> $DIR/redundant_static_lifetimes.rs:18:20
36 LL | const VAR_HEIGHT: &'static Foo = &Foo {};
37 | -^^^^^^^---- help: consider removing `'static`: `&Foo`
39 error: constants have by default a `'static` lifetime
40 --> $DIR/redundant_static_lifetimes.rs:20:19
42 LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static.
43 | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
45 error: constants have by default a `'static` lifetime
46 --> $DIR/redundant_static_lifetimes.rs:22:19
48 LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
49 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
51 error: constants have by default a `'static` lifetime
52 --> $DIR/redundant_static_lifetimes.rs:24:19
54 LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
55 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
57 error: statics have by default a `'static` lifetime
58 --> $DIR/redundant_static_lifetimes.rs:26:25
60 LL | static STATIC_VAR_ONE: &'static str = "Test static #1"; // ERROR Consider removing 'static.
61 | -^^^^^^^---- help: consider removing `'static`: `&str`
63 error: statics have by default a `'static` lifetime
64 --> $DIR/redundant_static_lifetimes.rs:30:29
66 LL | static STATIC_VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
67 | -^^^^^^^---- help: consider removing `'static`: `&str`
69 error: statics have by default a `'static` lifetime
70 --> $DIR/redundant_static_lifetimes.rs:32:25
72 LL | static STATIC_VAR_SIX: &'static u8 = &5;
73 | -^^^^^^^--- help: consider removing `'static`: `&u8`
75 error: statics have by default a `'static` lifetime
76 --> $DIR/redundant_static_lifetimes.rs:34:28
78 LL | static STATIC_VAR_HEIGHT: &'static Foo = &Foo {};
79 | -^^^^^^^---- help: consider removing `'static`: `&Foo`
81 error: statics have by default a `'static` lifetime
82 --> $DIR/redundant_static_lifetimes.rs:36:27
84 LL | static STATIC_VAR_SLICE: &'static [u8] = b"Test static #3"; // ERROR Consider removing 'static.
85 | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
87 error: statics have by default a `'static` lifetime
88 --> $DIR/redundant_static_lifetimes.rs:38:27
90 LL | static STATIC_VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
91 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
93 error: statics have by default a `'static` lifetime
94 --> $DIR/redundant_static_lifetimes.rs:40:27
96 LL | static STATIC_VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
97 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
99 error: statics have by default a `'static` lifetime
100 --> $DIR/redundant_static_lifetimes.rs:42:31
102 LL | static mut STATIC_MUT_SLICE: &'static mut [u32] = &mut [0];
103 | -^^^^^^^---------- help: consider removing `'static`: `&mut [u32]`
105 error: statics have by default a `'static` lifetime
106 --> $DIR/redundant_static_lifetimes.rs:71:16
108 LL | static V: &'static u8 = &17;
109 | -^^^^^^^--- help: consider removing `'static`: `&u8`
111 error: aborting due to 18 previous errors