11error: constants have by default a `'static` lifetime
2- --> tests/ui/redundant_static_lifetimes.rs:6 :17
2+ --> tests/ui/redundant_static_lifetimes.rs:8 :17
33 |
44LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR: Consider removing 'static.
55 | -^^^^^^^---- help: consider removing `'static`: `&str`
@@ -8,103 +8,103 @@ LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR: Consider removi
88 = help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`
99
1010error: constants have by default a `'static` lifetime
11- --> tests/ui/redundant_static_lifetimes.rs:10 :21
11+ --> tests/ui/redundant_static_lifetimes.rs:12 :21
1212 |
1313LL | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR: Consider removing 'static
1414 | -^^^^^^^---- help: consider removing `'static`: `&str`
1515
1616error: constants have by default a `'static` lifetime
17- --> tests/ui/redundant_static_lifetimes.rs:12 :32
17+ --> tests/ui/redundant_static_lifetimes.rs:14 :32
1818 |
1919LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
2020 | -^^^^^^^---- help: consider removing `'static`: `&str`
2121
2222error: constants have by default a `'static` lifetime
23- --> tests/ui/redundant_static_lifetimes.rs:12 :47
23+ --> tests/ui/redundant_static_lifetimes.rs:14 :47
2424 |
2525LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
2626 | -^^^^^^^---- help: consider removing `'static`: `&str`
2727
2828error: constants have by default a `'static` lifetime
29- --> tests/ui/redundant_static_lifetimes.rs:14 :17
29+ --> tests/ui/redundant_static_lifetimes.rs:16 :17
3030 |
3131LL | const VAR_SIX: &'static u8 = &5;
3232 | -^^^^^^^--- help: consider removing `'static`: `&u8`
3333
3434error: constants have by default a `'static` lifetime
35- --> tests/ui/redundant_static_lifetimes.rs:16 :20
35+ --> tests/ui/redundant_static_lifetimes.rs:18 :20
3636 |
3737LL | const VAR_HEIGHT: &'static Foo = &Foo {};
3838 | -^^^^^^^---- help: consider removing `'static`: `&Foo`
3939
4040error: constants have by default a `'static` lifetime
41- --> tests/ui/redundant_static_lifetimes.rs:18 :19
41+ --> tests/ui/redundant_static_lifetimes.rs:20 :19
4242 |
4343LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR: Consider removing 'static.
4444 | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
4545
4646error: constants have by default a `'static` lifetime
47- --> tests/ui/redundant_static_lifetimes.rs:20 :19
47+ --> tests/ui/redundant_static_lifetimes.rs:22 :19
4848 |
4949LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR: Consider removing 'static.
5050 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
5151
5252error: constants have by default a `'static` lifetime
53- --> tests/ui/redundant_static_lifetimes.rs:22 :19
53+ --> tests/ui/redundant_static_lifetimes.rs:24 :19
5454 |
5555LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR: Consider removing 'static.
5656 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
5757
5858error: statics have by default a `'static` lifetime
59- --> tests/ui/redundant_static_lifetimes.rs:24 :25
59+ --> tests/ui/redundant_static_lifetimes.rs:26 :25
6060 |
6161LL | static STATIC_VAR_ONE: &'static str = "Test static #1"; // ERROR: Consider removing 'static.
6262 | -^^^^^^^---- help: consider removing `'static`: `&str`
6363
6464error: statics have by default a `'static` lifetime
65- --> tests/ui/redundant_static_lifetimes.rs:28 :29
65+ --> tests/ui/redundant_static_lifetimes.rs:30 :29
6666 |
6767LL | static STATIC_VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR: Consider removing 'static
6868 | -^^^^^^^---- help: consider removing `'static`: `&str`
6969
7070error: statics have by default a `'static` lifetime
71- --> tests/ui/redundant_static_lifetimes.rs:30 :25
71+ --> tests/ui/redundant_static_lifetimes.rs:32 :25
7272 |
7373LL | static STATIC_VAR_SIX: &'static u8 = &5;
7474 | -^^^^^^^--- help: consider removing `'static`: `&u8`
7575
7676error: statics have by default a `'static` lifetime
77- --> tests/ui/redundant_static_lifetimes.rs:32 :28
77+ --> tests/ui/redundant_static_lifetimes.rs:34 :28
7878 |
7979LL | static STATIC_VAR_HEIGHT: &'static Foo = &Foo {};
8080 | -^^^^^^^---- help: consider removing `'static`: `&Foo`
8181
8282error: statics have by default a `'static` lifetime
83- --> tests/ui/redundant_static_lifetimes.rs:34 :27
83+ --> tests/ui/redundant_static_lifetimes.rs:36 :27
8484 |
8585LL | static STATIC_VAR_SLICE: &'static [u8] = b"Test static #3"; // ERROR: Consider removing 'static.
8686 | -^^^^^^^----- help: consider removing `'static`: `&[u8]`
8787
8888error: statics have by default a `'static` lifetime
89- --> tests/ui/redundant_static_lifetimes.rs:36 :27
89+ --> tests/ui/redundant_static_lifetimes.rs:38 :27
9090 |
9191LL | static STATIC_VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR: Consider removing 'static.
9292 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)`
9393
9494error: statics have by default a `'static` lifetime
95- --> tests/ui/redundant_static_lifetimes.rs:38 :27
95+ --> tests/ui/redundant_static_lifetimes.rs:40 :27
9696 |
9797LL | static STATIC_VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR: Consider removing 'static.
9898 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]`
9999
100100error: statics have by default a `'static` lifetime
101- --> tests/ui/redundant_static_lifetimes.rs:40 :31
101+ --> tests/ui/redundant_static_lifetimes.rs:42 :31
102102 |
103103LL | static mut STATIC_MUT_SLICE: &'static mut [u32] = &mut [0];
104104 | -^^^^^^^---------- help: consider removing `'static`: `&mut [u32]`
105105
106106error: statics have by default a `'static` lifetime
107- --> tests/ui/redundant_static_lifetimes.rs:69 :16
107+ --> tests/ui/redundant_static_lifetimes.rs:71 :16
108108 |
109109LL | static V: &'static u8 = &17;
110110 | -^^^^^^^--- help: consider removing `'static`: `&u8`
0 commit comments