fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0133]: use of mutable static is unsafe and requires unsafe function or block 2 --> $DIR/unsafe-not-inherited.rs:8:31 3 | 4LL | unsafe {static BAR: u64 = FOO;} 5 | ------ ^^^ use of mutable static 6 | | 7 | items do not inherit unsafety from separate enclosing items 8 | 9 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior 10 11error[E0133]: call to unsafe function is unsafe and requires unsafe function or block 12 --> $DIR/unsafe-not-inherited.rs:20:13 13 | 14LL | unsafe { 15 | ------ items do not inherit unsafety from separate enclosing items 16... 17LL | unsafe_call(); 18 | ^^^^^^^^^^^^^ call to unsafe function 19 | 20 = note: consult the function's documentation for information on how to avoid undefined behavior 21 22error: aborting due to 2 previous errors 23 24For more information about this error, try `rustc --explain E0133`.