fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.5 KiB35 linesraw
1error[E0133]: use of extern static is unsafe and requires unsafe function or block
2  --> $DIR/safe-extern-statics.rs:11:13
3   |
4LL |     let a = A;
5   |             ^ use of extern static
6   |
7   = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
8
9error[E0133]: use of extern static is unsafe and requires unsafe function or block
10  --> $DIR/safe-extern-statics.rs:12:14
11   |
12LL |     let ra = &A;
13   |              ^^ use of extern static
14   |
15   = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
16
17error[E0133]: use of extern static is unsafe and requires unsafe function or block
18  --> $DIR/safe-extern-statics.rs:13:14
19   |
20LL |     let xa = XA;
21   |              ^^ use of extern static
22   |
23   = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
24
25error[E0133]: use of extern static is unsafe and requires unsafe function or block
26  --> $DIR/safe-extern-statics.rs:14:15
27   |
28LL |     let xra = &XA;
29   |               ^^^ use of extern static
30   |
31   = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
32
33error: aborting due to 4 previous errors
34
35For more information about this error, try `rustc --explain E0133`.