fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
2.1 KiB57 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
13warning[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   |
21   = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
22   = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
23   = note: for more information, try `rustc --explain E0729`
24
25error[E0625]: thread-local statics cannot be accessed at compile-time
26  --> $DIR/thread-local-in-ctfe.rs:15:16
27   |
28LL | const D: u32 = A;
29   |                ^
30
31error[E0625]: thread-local statics cannot be accessed at compile-time
32  --> $DIR/thread-local-in-ctfe.rs:18:17
33   |
34LL | const E: &u32 = &A;
35   |                 ^^
36
37warning[E0712]: thread-local variable borrowed past end of function
38  --> $DIR/thread-local-in-ctfe.rs:18:17
39   |
40LL | const E: &u32 = &A;
41   |                 ^^- end of enclosing function is here
42   |                 |
43   |                 thread-local variables cannot be borrowed beyond the end of the function
44   |
45   = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
46   = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
47   = note: for more information, try `rustc --explain E0729`
48
49error[E0625]: thread-local statics cannot be accessed at compile-time
50  --> $DIR/thread-local-in-ctfe.rs:25:5
51   |
52LL |     A
53   |     ^
54
55error: aborting due to 5 previous errors
56
57For more information about this error, try `rustc --explain E0712`.