]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/tls.stderr
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
[rust.git] / src / test / ui / consts / miri_unleashed / tls.stderr
1 error[E0080]: could not evaluate static initializer
2   --> $DIR/tls.rs:12:25
3    |
4 LL |     unsafe { let _val = A; }
5    |                         ^ cannot access thread local static (DefId(0:6 ~ tls[HASH]::A))
6
7 error[E0080]: could not evaluate static initializer
8   --> $DIR/tls.rs:19:26
9    |
10 LL |     unsafe { let _val = &A; }
11    |                          ^ cannot access thread local static (DefId(0:6 ~ tls[HASH]::A))
12
13 warning: skipping const checks
14    |
15 help: skipping check that does not even have a feature gate
16   --> $DIR/tls.rs:12:25
17    |
18 LL |     unsafe { let _val = A; }
19    |                         ^
20 help: skipping check that does not even have a feature gate
21   --> $DIR/tls.rs:19:26
22    |
23 LL |     unsafe { let _val = &A; }
24    |                          ^
25
26 error: aborting due to 2 previous errors; 1 warning emitted
27
28 For more information about this error, try `rustc --explain E0080`.