]> git.proxmox.com Git - rustc.git/blob - src/test/ui/thread-local-in-ctfe.nll.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / thread-local-in-ctfe.nll.stderr
1 error[E0625]: thread-local statics cannot be accessed at compile-time
2 --> $DIR/thread-local-in-ctfe.rs:6:17
3 |
4 LL | static B: u32 = A;
5 | ^
6
7 error[E0625]: thread-local statics cannot be accessed at compile-time
8 --> $DIR/thread-local-in-ctfe.rs:9:18
9 |
10 LL | static C: &u32 = &A;
11 | ^^
12
13 warning[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
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
24 error[E0625]: thread-local statics cannot be accessed at compile-time
25 --> $DIR/thread-local-in-ctfe.rs:12:16
26 |
27 LL | const D: u32 = A;
28 | ^
29
30 error[E0625]: thread-local statics cannot be accessed at compile-time
31 --> $DIR/thread-local-in-ctfe.rs:15:17
32 |
33 LL | const E: &u32 = &A;
34 | ^^
35
36 warning[E0712]: thread-local variable borrowed past end of function
37 --> $DIR/thread-local-in-ctfe.rs:15:17
38 |
39 LL | const E: &u32 = &A;
40 | ^^- end of enclosing function is here
41 | |
42 | thread-local variables cannot be borrowed beyond the end of the function
43 |
44 = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
45 = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
46
47 error[E0625]: thread-local statics cannot be accessed at compile-time
48 --> $DIR/thread-local-in-ctfe.rs:19:5
49 |
50 LL | A
51 | ^
52
53 error: aborting due to 5 previous errors
54
55 Some errors occurred: E0625, E0712.
56 For more information about an error, try `rustc --explain E0625`.