1
Fork 0

Fix a recently introduces regression

This commit is contained in:
Oliver Scherer 2018-12-17 14:20:42 +01:00
parent 6d34ec18c7
commit f8e508cde4
6 changed files with 44 additions and 6 deletions

View file

@ -12,10 +12,10 @@
pub static mut A: u32 = 0;
pub static mut B: () = unsafe { A = 1; };
//~^ ERROR cannot mutate statics in the initializer of another static
//~^ ERROR could not evaluate static initializer
pub static mut C: u32 = unsafe { C = 1; 0 };
//~^ ERROR cannot mutate statics in the initializer of another static
//~^ ERROR cycle detected
pub static D: u32 = D;