@@ -2,79 +2,79 @@ error: Constants have by default a `'static` lifetime
2
2
--> $DIR/const_static_lifetime.rs:4:17
3
3
|
4
4
4 | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static.
5
- | ^^^^^^^ help: consider removing `'static`
5
+ | - ^^^^^^^---- help: consider removing `'static`: `&str `
6
6
|
7
7
= note: `-D const-static-lifetime` implied by `-D warnings`
8
8
9
9
error: Constants have by default a `'static` lifetime
10
10
--> $DIR/const_static_lifetime.rs:8:21
11
11
|
12
12
8 | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
13
- | ^^^^^^^ help: consider removing `'static`
13
+ | - ^^^^^^^---- help: consider removing `'static`: `&str `
14
14
15
15
error: Constants have by default a `'static` lifetime
16
16
--> $DIR/const_static_lifetime.rs:10:32
17
17
|
18
18
10 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
19
- | ^^^^^^^ help: consider removing `'static`
19
+ | - ^^^^^^^---- help: consider removing `'static`: `&str `
20
20
21
21
error: Constants have by default a `'static` lifetime
22
22
--> $DIR/const_static_lifetime.rs:10:47
23
23
|
24
24
10 | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
25
- | ^^^^^^^ help: consider removing `'static`
25
+ | - ^^^^^^^---- help: consider removing `'static`: `&str `
26
26
27
27
error: Constants have by default a `'static` lifetime
28
28
--> $DIR/const_static_lifetime.rs:12:18
29
29
|
30
30
12 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
31
- | ^^^^^^^ help: consider removing `'static`
31
+ | - ^^^^^^^------------------ help: consider removing `'static`: `&[&[&'static str]] `
32
32
33
33
error: Constants have by default a `'static` lifetime
34
34
--> $DIR/const_static_lifetime.rs:12:30
35
35
|
36
36
12 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
37
- | ^^^^^^^ help: consider removing `'static`
37
+ | - ^^^^^^^---- help: consider removing `'static`: `&str `
38
38
39
39
error: Constants have by default a `'static` lifetime
40
40
--> $DIR/const_static_lifetime.rs:14:17
41
41
|
42
42
14 | const VAR_SIX: &'static u8 = &5;
43
- | ^^^^^^^ help: consider removing `'static`
43
+ | - ^^^^^^^--- help: consider removing `'static`: `&u8 `
44
44
45
45
error: Constants have by default a `'static` lifetime
46
46
--> $DIR/const_static_lifetime.rs:16:29
47
47
|
48
48
16 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
49
- | ^^^^^^^ help: consider removing `'static`
49
+ | - ^^^^^^^--------------- help: consider removing `'static`: `&[&'static str] `
50
50
51
51
error: Constants have by default a `'static` lifetime
52
52
--> $DIR/const_static_lifetime.rs:16:39
53
53
|
54
54
16 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
55
- | ^^^^^^^ help: consider removing `'static`
55
+ | - ^^^^^^^---- help: consider removing `'static`: `&str `
56
56
57
57
error: Constants have by default a `'static` lifetime
58
58
--> $DIR/const_static_lifetime.rs:18:20
59
59
|
60
60
18 | const VAR_HEIGHT: &'static Foo = &Foo {};
61
- | ^^^^^^^ help: consider removing `'static`
61
+ | - ^^^^^^^---- help: consider removing `'static`: `&Foo `
62
62
63
63
error: Constants have by default a `'static` lifetime
64
64
--> $DIR/const_static_lifetime.rs:20:19
65
65
|
66
66
20 | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR Consider removing 'static.
67
- | ^^^^^^^ help: consider removing `'static`
67
+ | - ^^^^^^^----- help: consider removing `'static`: `&[u8] `
68
68
69
69
error: Constants have by default a `'static` lifetime
70
70
--> $DIR/const_static_lifetime.rs:22:19
71
71
|
72
72
22 | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR Consider removing 'static.
73
- | ^^^^^^^ help: consider removing `'static`
73
+ | - ^^^^^^^--------- help: consider removing `'static`: `&(u8, u8) `
74
74
75
75
error: Constants have by default a `'static` lifetime
76
76
--> $DIR/const_static_lifetime.rs:24:19
77
77
|
78
78
24 | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static.
79
- | ^^^^^^^ help: consider removing `'static`
79
+ | - ^^^^^^^-------- help: consider removing `'static`: `&[u8; 1] `
80
80
0 commit comments