Skip to content

Commit acdd93a

Browse files
committed
Final .stderr for const_static_lifetime.
1 parent 0928168 commit acdd93a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/ui/const_static_lifetime.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,49 @@ error: Constants have by default a `'static` lifetime
22
--> $DIR/const_static_lifetime.rs:4:17
33
|
44
4 | const VAR_ONE: &'static str = "Test constant #1"; // ERROR Consider removing 'static.
5-
| ^^^^^^^ help: consider removing `'static`: `&str`
5+
| ^^^^^^^ help: consider removing `'static`
66
|
77
= note: `-D const-static-lifetime` implied by `-D warnings`
88

99
error: Constants have by default a `'static` lifetime
1010
--> $DIR/const_static_lifetime.rs:8:21
1111
|
1212
8 | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR Consider removing 'static
13-
| ^^^^^^^ help: consider removing `'static`: `&str`
13+
| ^^^^^^^ help: consider removing `'static`
1414

1515
error: Constants have by default a `'static` lifetime
1616
--> $DIR/const_static_lifetime.rs:10:32
1717
|
1818
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`
2020

2121
error: Constants have by default a `'static` lifetime
2222
--> $DIR/const_static_lifetime.rs:10:47
2323
|
2424
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`
2626

2727
error: Constants have by default a `'static` lifetime
2828
--> $DIR/const_static_lifetime.rs:12:30
2929
|
3030
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`
3232

3333
error: Constants have by default a `'static` lifetime
3434
--> $DIR/const_static_lifetime.rs:14:17
3535
|
3636
14 | const VAR_SIX: &'static u8 = &5;
37-
| ^^^^^^^ help: consider removing `'static`: `&u8`
37+
| ^^^^^^^ help: consider removing `'static`
3838

3939
error: Constants have by default a `'static` lifetime
4040
--> $DIR/const_static_lifetime.rs:16:39
4141
|
4242
16 | const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
43-
| ^^^^^^^ help: consider removing `'static`: `&str`
43+
| ^^^^^^^ help: consider removing `'static`
4444

4545
error: Constants have by default a `'static` lifetime
4646
--> $DIR/const_static_lifetime.rs:18:20
4747
|
4848
18 | const VAR_HEIGHT: &'static Foo = &Foo {};
49-
| ^^^^^^^ help: consider removing `'static`: `&Foo`
49+
| ^^^^^^^ help: consider removing `'static`
5050

0 commit comments

Comments
 (0)