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