]> git.lizzy.rs Git - rust.git/blob - src/test/ui/thread-local-in-ctfe.nll.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.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:16: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:19:18
9    |
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:19: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 error[E0625]: thread-local statics cannot be accessed at compile-time
22   --> $DIR/thread-local-in-ctfe.rs:22:16
23    |
24 LL | const D: u32 = A;
25    |                ^
26
27 error[E0625]: thread-local statics cannot be accessed at compile-time
28   --> $DIR/thread-local-in-ctfe.rs:25: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:25:17
35    |
36 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
40
41 error[E0625]: thread-local statics cannot be accessed at compile-time
42   --> $DIR/thread-local-in-ctfe.rs:29:5
43    |
44 LL |     A
45    |     ^
46
47 error: aborting due to 7 previous errors
48
49 Some errors occurred: E0625, E0712.
50 For more information about an error, try `rustc --explain E0625`.