]> git.lizzy.rs Git - rust.git/blob - src/test/ui/thread-local-in-ctfe.nll.stderr
Update output for borrowck=migrate compare mode.
[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 warning[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    = warning: This error has been downgraded to a warning for backwards compatibility with previous releases.
22            It represents potential unsoundness in your code.
23            This warning will become a hard error in the future.
24
25 error[E0625]: thread-local statics cannot be accessed at compile-time
26   --> $DIR/thread-local-in-ctfe.rs:22:16
27    |
28 LL | const D: u32 = A;
29    |                ^
30
31 error[E0625]: thread-local statics cannot be accessed at compile-time
32   --> $DIR/thread-local-in-ctfe.rs:25:17
33    |
34 LL | const E: &u32 = &A;
35    |                 ^^
36
37 warning[E0712]: thread-local variable borrowed past end of function
38   --> $DIR/thread-local-in-ctfe.rs:25:17
39    |
40 LL | 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            It represents potential unsoundness in your code.
47            This warning will become a hard error in the future.
48
49 error[E0625]: thread-local statics cannot be accessed at compile-time
50   --> $DIR/thread-local-in-ctfe.rs:29:5
51    |
52 LL |     A
53    |     ^
54
55 error: aborting due to 5 previous errors
56
57 Some errors occurred: E0625, E0712.
58 For more information about an error, try `rustc --explain E0625`.