blob: 2f94754bcb02014ec85d900deb698adba2609f04 (
plain)
1
2
3
4
5
6
|
fn main() {
let a = &123;
let b: &mut i32 = a;
// { dg-error "mismatched mutability" "" { target *-*-* } .-1 }
// { dg-error "mismatched types, expected .&mut i32. but got .& i32." "" { target *-*-* } .-2 }
}
|