1
Fork 0

Issue deprecation warnings for safe accesses to extern statics

This commit is contained in:
Vadim Petrochenkov 2016-08-26 19:23:42 +03:00
parent ea45edf0ee
commit aadbcffb7c
11 changed files with 123 additions and 16 deletions

View file

@ -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() {}