blob: 9ab82744fbd8af978f115535e331f5d9df49b412 [file] [log] [blame]
const fn foo (a: &mut i32) { // { dg-error "mutable references are not allowed in constant functions" }
*a = 1;
}