|
1 |
| -error: Constants have by default a `'static` lifetime |
| 1 | +error: constants have by default a `'static` lifetime |
2 | 2 | --> $DIR/redundant_static_lifetimes.rs:8:17
|
3 | 3 | |
|
4 | 4 | LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static.
|
5 | 5 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
|
8 | 8 |
|
9 |
| -error: Constants have by default a `'static` lifetime |
| 9 | +error: constants have by default a `'static` lifetime |
10 | 10 | --> $DIR/redundant_static_lifetimes.rs:12:21
|
11 | 11 | |
|
12 | 12 | LL | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
|
13 | 13 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
14 | 14 |
|
15 |
| -error: Constants have by default a `'static` lifetime |
| 15 | +error: constants have by default a `'static` lifetime |
16 | 16 | --> $DIR/redundant_static_lifetimes.rs:14:32
|
17 | 17 | |
|
18 | 18 | LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
|
19 | 19 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
20 | 20 |
|
21 |
| -error: Constants have by default a `'static` lifetime |
| 21 | +error: constants have by default a `'static` lifetime |
22 | 22 | --> $DIR/redundant_static_lifetimes.rs:14:47
|
23 | 23 | |
|
24 | 24 | LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
|
25 | 25 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
26 | 26 |
|
27 |
| -error: Constants have by default a `'static` lifetime |
| 27 | +error: constants have by default a `'static` lifetime |
28 | 28 | --> $DIR/redundant_static_lifetimes.rs:16:17
|
29 | 29 | |
|
30 | 30 | LL | const VAR_SIX: &'static u8 = &5;
|
31 | 31 | | -^^^^^^^--- help: consider removing `'static`: `&u8`
|
32 | 32 |
|
33 |
| -error: Constants have by default a `'static` lifetime |
| 33 | +error: constants have by default a `'static` lifetime |
34 | 34 | --> $DIR/redundant_static_lifetimes.rs:18:20
|
35 | 35 | |
|
36 | 36 | LL | const VAR_HEIGHT: &'static Foo = &Foo {};
|
37 | 37 | | -^^^^^^^---- help: consider removing `'static`: `&Foo`
|
38 | 38 |
|
39 |
| -error: Constants have by default a `'static` lifetime |
| 39 | +error: constants have by default a `'static` lifetime |
40 | 40 | --> $DIR/redundant_static_lifetimes.rs:20:19
|
41 | 41 | |
|
42 | 42 | LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static.
|
43 | 43 | | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
|
44 | 44 |
|
45 |
| -error: Constants have by default a `'static` lifetime |
| 45 | +error: constants have by default a `'static` lifetime |
46 | 46 | --> $DIR/redundant_static_lifetimes.rs:22:19
|
47 | 47 | |
|
48 | 48 | LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
|
49 | 49 | | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
|
50 | 50 |
|
51 |
| -error: Constants have by default a `'static` lifetime |
| 51 | +error: constants have by default a `'static` lifetime |
52 | 52 | --> $DIR/redundant_static_lifetimes.rs:24:19
|
53 | 53 | |
|
54 | 54 | LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
|
55 | 55 | | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
|
56 | 56 |
|
57 |
| -error: Statics have by default a `'static` lifetime |
| 57 | +error: statics have by default a `'static` lifetime |
58 | 58 | --> $DIR/redundant_static_lifetimes.rs:26:25
|
59 | 59 | |
|
60 | 60 | LL | static STATIC_VAR_ONE: &'static str = "Test static #1"; // ERROR Consider removing 'static.
|
61 | 61 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
62 | 62 |
|
63 |
| -error: Statics have by default a `'static` lifetime |
| 63 | +error: statics have by default a `'static` lifetime |
64 | 64 | --> $DIR/redundant_static_lifetimes.rs:30:29
|
65 | 65 | |
|
66 | 66 | LL | static STATIC_VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
|
67 | 67 | | -^^^^^^^---- help: consider removing `'static`: `&str`
|
68 | 68 |
|
69 |
| -error: Statics have by default a `'static` lifetime |
| 69 | +error: statics have by default a `'static` lifetime |
70 | 70 | --> $DIR/redundant_static_lifetimes.rs:32:25
|
71 | 71 | |
|
72 | 72 | LL | static STATIC_VAR_SIX: &'static u8 = &5;
|
73 | 73 | | -^^^^^^^--- help: consider removing `'static`: `&u8`
|
74 | 74 |
|
75 |
| -error: Statics have by default a `'static` lifetime |
| 75 | +error: statics have by default a `'static` lifetime |
76 | 76 | --> $DIR/redundant_static_lifetimes.rs:34:28
|
77 | 77 | |
|
78 | 78 | LL | static STATIC_VAR_HEIGHT: &'static Foo = &Foo {};
|
79 | 79 | | -^^^^^^^---- help: consider removing `'static`: `&Foo`
|
80 | 80 |
|
81 |
| -error: Statics have by default a `'static` lifetime |
| 81 | +error: statics have by default a `'static` lifetime |
82 | 82 | --> $DIR/redundant_static_lifetimes.rs:36:27
|
83 | 83 | |
|
84 | 84 | LL | static STATIC_VAR_SLICE: &'static [u8] = b"Test static #3"; // ERROR Consider removing 'static.
|
85 | 85 | | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
|
86 | 86 |
|
87 |
| -error: Statics have by default a `'static` lifetime |
| 87 | +error: statics have by default a `'static` lifetime |
88 | 88 | --> $DIR/redundant_static_lifetimes.rs:38:27
|
89 | 89 | |
|
90 | 90 | LL | static STATIC_VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
|
91 | 91 | | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
|
92 | 92 |
|
93 |
| -error: Statics have by default a `'static` lifetime |
| 93 | +error: statics have by default a `'static` lifetime |
94 | 94 | --> $DIR/redundant_static_lifetimes.rs:40:27
|
95 | 95 | |
|
96 | 96 | LL | static STATIC_VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
|
|
0 commit comments