]> git.proxmox.com Git - rustc.git/blame - src/test/ui/thread-local-in-ctfe.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / thread-local-in-ctfe.stderr
CommitLineData
b7449926 1error[E0625]: thread-local statics cannot be accessed at compile-time
0731742a 2 --> $DIR/thread-local-in-ctfe.rs:6:17
b7449926
XL
3 |
4LL | static B: u32 = A;
5 | ^
6
7error[E0625]: thread-local statics cannot be accessed at compile-time
0731742a 8 --> $DIR/thread-local-in-ctfe.rs:9:18
b7449926
XL
9 |
10LL | static C: &u32 = &A;
11 | ^^
12
e74abb32 13error[E0712]: thread-local variable borrowed past end of function
48663c56
XL
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
48663c56 20
b7449926 21error[E0625]: thread-local statics cannot be accessed at compile-time
e74abb32 22 --> $DIR/thread-local-in-ctfe.rs:13:16
b7449926
XL
23 |
24LL | const D: u32 = A;
25 | ^
26
27error[E0625]: thread-local statics cannot be accessed at compile-time
e74abb32 28 --> $DIR/thread-local-in-ctfe.rs:16:17
b7449926
XL
29 |
30LL | const E: &u32 = &A;
31 | ^^
32
e74abb32
XL
33error[E0712]: thread-local variable borrowed past end of function
34 --> $DIR/thread-local-in-ctfe.rs:16:17
48663c56
XL
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
48663c56 40
b7449926 41error[E0625]: thread-local statics cannot be accessed at compile-time
e74abb32 42 --> $DIR/thread-local-in-ctfe.rs:21:5
b7449926
XL
43 |
44LL | A
45 | ^
46
e74abb32 47error: aborting due to 7 previous errors
b7449926 48
48663c56 49For more information about this error, try `rustc --explain E0712`.