1 error[E0308]: mismatched types
2 --> $DIR/ptr-coercion.rs:7:25
4 LL | let x: *mut isize = x;
5 | ---------- ^ types differ in mutability
9 = note: expected raw pointer `*mut isize`
10 found raw pointer `*const isize`
12 error[E0308]: mismatched types
13 --> $DIR/ptr-coercion.rs:13:25
15 LL | let x: *mut isize = &42;
16 | ---------- ^^^ types differ in mutability
18 | expected due to this
20 = note: expected raw pointer `*mut isize`
21 found reference `&isize`
23 error[E0308]: mismatched types
24 --> $DIR/ptr-coercion.rs:19:25
26 LL | let x: *mut isize = x;
27 | ---------- ^ types differ in mutability
29 | expected due to this
31 = note: expected raw pointer `*mut isize`
32 found raw pointer `*const isize`
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0308`.