]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0388.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0388.rs
1 static X: i32 = 1;
2 const C: i32 = 2;
3
4 const CR: &'static mut i32 = &mut C; //~ ERROR E0017
5 static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
6                                               //~| ERROR cannot borrow
7                                               //~| ERROR cannot mutate statics
8 static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0017
9
10 fn main() {}