fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB27 linesraw
1error[E0133]: use of mutable static is unsafe and requires unsafe function or block
2  --> $DIR/static-mut-requires-unsafe.rs:7:5
3   |
4LL |     a += 3;
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
9error[E0133]: use of mutable static is unsafe and requires unsafe function or block
10  --> $DIR/static-mut-requires-unsafe.rs:8:5
11   |
12LL |     a = 4;
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
17error[E0133]: use of mutable static is unsafe and requires unsafe function or block
18  --> $DIR/static-mut-requires-unsafe.rs:9:14
19   |
20LL |     let _b = a;
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
25error: aborting due to 3 previous errors
26
27For more information about this error, try `rustc --explain E0133`.