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