summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0388.rs
blob: 5954e3490b06c770766b596604225d9798b05d14 (plain)
1
2
3
4
5
6
7
8
9
10
static X: i32 = 1;
const C: i32 = 2;

const CR: &'static mut i32 = &mut C; //~ ERROR E0658
static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0658
                                              //~| ERROR cannot borrow
                                              //~| ERROR E0019
static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0658

fn main() {}