fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.5 KiB49 linesraw
1error[E0625]: thread-local statics cannot be accessed at compile-time
2  --> $DIR/thread-local-in-ctfe.rs:6:17
3   |
4LL | static B: u32 = A;
5   |                 ^
6
7error[E0625]: thread-local statics cannot be accessed at compile-time
8  --> $DIR/thread-local-in-ctfe.rs:9:18
9   |
10LL | static C: &u32 = &A;
11   |                  ^^
12
13error[E0712]: thread-local variable borrowed past end of function
14  --> $DIR/thread-local-in-ctfe.rs:9:18
15   |
16LL | 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
20
21error[E0625]: thread-local statics cannot be accessed at compile-time
22  --> $DIR/thread-local-in-ctfe.rs:13:16
23   |
24LL | const D: u32 = A;
25   |                ^
26
27error[E0625]: thread-local statics cannot be accessed at compile-time
28  --> $DIR/thread-local-in-ctfe.rs:16:17
29   |
30LL | const E: &u32 = &A;
31   |                 ^^
32
33error[E0712]: thread-local variable borrowed past end of function
34  --> $DIR/thread-local-in-ctfe.rs:16:17
35   |
36LL | 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
40
41error[E0625]: thread-local statics cannot be accessed at compile-time
42  --> $DIR/thread-local-in-ctfe.rs:21:5
43   |
44LL |     A
45   |     ^
46
47error: aborting due to 7 previous errors
48
49For more information about this error, try `rustc --explain E0712`.