1 error[E0308]: mismatched types
2 --> $DIR/ptr-coercion.rs:7:25
4 LL | let x: *mut isize = x;
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:13:25
13 LL | let x: *mut isize = &42;
14 | ^^^ types differ in mutability
16 = note: expected type `*mut isize`
19 error[E0308]: mismatched types
20 --> $DIR/ptr-coercion.rs:19:25
22 LL | let x: *mut isize = x;
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`.