@@ -2,49 +2,49 @@ 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`: `&str`
5
+ | ^^^^^^^ help: consider removing `'static`
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`: `&str`
13
+ | ^^^^^^^ help: consider removing `'static`
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`: `&str`
19
+ | ^^^^^^^ help: consider removing `'static`
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`: `&str`
25
+ | ^^^^^^^ help: consider removing `'static`
26
26
27
27
error: Constants have by default a `'static` lifetime
28
28
--> $DIR/const_static_lifetime.rs:12:30
29
29
|
30
30
12 | const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
31
- | ^^^^^^^ help: consider removing `'static`: `&str`
31
+ | ^^^^^^^ help: consider removing `'static`
32
32
33
33
error: Constants have by default a `'static` lifetime
34
34
--> $DIR/const_static_lifetime.rs:14:17
35
35
|
36
36
14 | const VAR_SIX: &'static u8 = &5;
37
- | ^^^^^^^ help: consider removing `'static`: `&u8`
37
+ | ^^^^^^^ help: consider removing `'static`
38
38
39
39
error: Constants have by default a `'static` lifetime
40
40
--> $DIR/const_static_lifetime.rs:16:39
41
41
|
42
42
16 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
43
- | ^^^^^^^ help: consider removing `'static`: `&str`
43
+ | ^^^^^^^ help: consider removing `'static`
44
44
45
45
error: Constants have by default a `'static` lifetime
46
46
--> $DIR/const_static_lifetime.rs:18:20
47
47
|
48
48
18 | const VAR_HEIGHT: &'static Foo = &Foo {};
49
- | ^^^^^^^ help: consider removing `'static`: `&Foo`
49
+ | ^^^^^^^ help: consider removing `'static`
50
50
0 commit comments