1 error[E0308]: mismatched types
2 --> $DIR/ptr-coercion.rs:17:25
4 LL | let x: *mut isize = x; //~ ERROR mismatched types
5 | ^ types differ in mutability
7 = note: expected type `*mut isize`
8 found type `*const isize`
10 error[E0308]: mismatched types
11 --> $DIR/ptr-coercion.rs:23:25
13 LL | let x: *mut isize = &42; //~ ERROR mismatched types
14 | ^^^ types differ in mutability
16 = note: expected type `*mut isize`
19 error[E0308]: mismatched types
20 --> $DIR/ptr-coercion.rs:29:25
22 LL | let x: *mut isize = x; //~ ERROR mismatched types
23 | ^ types differ in mutability
25 = note: expected type `*mut isize`
26 found type `*const isize`
28 error: aborting due to 3 previous errors
30 For more information about this error, try `rustc --explain E0308`.