// Test for absence of validation mismatch ICE in #65394 const _: Vec = { let mut x = Vec::::new(); let r = &mut x; //~ ERROR references in constants may only refer to immutable values let y = x; y }; fn main() {}