Issue deprecation warnings for safe accesses to extern statics
This commit is contained in:
parent
ea45edf0ee
commit
aadbcffb7c
11 changed files with 123 additions and 16 deletions
|
@ -27,6 +27,6 @@ extern "C" {
|
|||
static test_static: c_int;
|
||||
}
|
||||
|
||||
static B: &'static c_int = &test_static;
|
||||
static B: &'static c_int = unsafe { &test_static };
|
||||
|
||||
pub fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue