]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-mut.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / coercion / coerce-mut.rs
1 fn f(x: &mut i32) {}
2
3 fn main() {
4     let x = 0;
5     f(&x);
6     //~^ ERROR mismatched types
7     //~| expected mutable reference `&mut i32`
8     //~| found reference `&{integer}`
9     //~| types differ in mutability
10 }