@@ -5,45 +5,28 @@ LL | static B: u32 = A;
5
5
| ^
6
6
7
7
error[E0625]: thread-local statics cannot be accessed at compile-time
8
- --> $DIR/thread-local-in-ctfe.rs:9:18
8
+ --> $DIR/thread-local-in-ctfe.rs:9:19
9
9
|
10
10
LL | static C: &u32 = &A;
11
- | ^^
12
-
13
- error[E0712]: thread-local variable borrowed past end of function
14
- --> $DIR/thread-local-in-ctfe.rs:9:18
15
- |
16
- LL | static C: &u32 = &A;
17
- | ^^- end of enclosing function is here
18
- | |
19
- | thread-local variables cannot be borrowed beyond the end of the function
11
+ | ^
20
12
21
13
error[E0625]: thread-local statics cannot be accessed at compile-time
22
- --> $DIR/thread-local-in-ctfe.rs:13 :16
14
+ --> $DIR/thread-local-in-ctfe.rs:12 :16
23
15
|
24
16
LL | const D: u32 = A;
25
17
| ^
26
18
27
19
error[E0625]: thread-local statics cannot be accessed at compile-time
28
- --> $DIR/thread-local-in-ctfe.rs:16:17
29
- |
30
- LL | const E: &u32 = &A;
31
- | ^^
32
-
33
- error[E0712]: thread-local variable borrowed past end of function
34
- --> $DIR/thread-local-in-ctfe.rs:16:17
20
+ --> $DIR/thread-local-in-ctfe.rs:15:18
35
21
|
36
22
LL | const E: &u32 = &A;
37
- | ^^- end of enclosing function is here
38
- | |
39
- | thread-local variables cannot be borrowed beyond the end of the function
23
+ | ^
40
24
41
25
error[E0625]: thread-local statics cannot be accessed at compile-time
42
- --> $DIR/thread-local-in-ctfe.rs:21 :5
26
+ --> $DIR/thread-local-in-ctfe.rs:19 :5
43
27
|
44
28
LL | A
45
29
| ^
46
30
47
- error: aborting due to 7 previous errors
31
+ error: aborting due to 5 previous errors
48
32
49
- For more information about this error, try `rustc --explain E0712`.
0 commit comments