summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0388.rs
blob: 13131017c2e07df2e87dd9da1cebd72dea8fd39b (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 E0764
static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0019
                                              //~| ERROR cannot borrow
                                              //~| ERROR E0764
static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0764

fn main() {}