]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/safe-extern-statics-mut.mir.stderr
Auto merge of #102717 - beetrees:repr128-c-style-debuginfo, r=nagisa
[rust.git] / src / test / ui / static / safe-extern-statics-mut.mir.stderr
1 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
2   --> $DIR/safe-extern-statics-mut.rs:13:13
3    |
4 LL |     let b = B;
5    |             ^ use of mutable static
6    |
7    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
8
9 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
10   --> $DIR/safe-extern-statics-mut.rs:14:14
11    |
12 LL |     let rb = &B;
13    |              ^^ use of mutable static
14    |
15    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
16
17 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
18   --> $DIR/safe-extern-statics-mut.rs:15:14
19    |
20 LL |     let xb = XB;
21    |              ^^ use of mutable static
22    |
23    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
24
25 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
26   --> $DIR/safe-extern-statics-mut.rs:16:15
27    |
28 LL |     let xrb = &XB;
29    |               ^^^ use of mutable static
30    |
31    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0133`.