--> $DIR/ptr-coercion.rs:7:25
|
LL | let x: *mut isize = x;
- | ^ types differ in mutability
+ | ---------- ^ types differ in mutability
+ | |
+ | expected due to this
|
= note: expected raw pointer `*mut isize`
found raw pointer `*const isize`
--> $DIR/ptr-coercion.rs:13:25
|
LL | let x: *mut isize = &42;
- | ^^^ types differ in mutability
+ | ---------- ^^^ types differ in mutability
+ | |
+ | expected due to this
|
= note: expected raw pointer `*mut isize`
found reference `&isize`
--> $DIR/ptr-coercion.rs:19:25
|
LL | let x: *mut isize = x;
- | ^ types differ in mutability
+ | ---------- ^ types differ in mutability
+ | |
+ | expected due to this
|
= note: expected raw pointer `*mut isize`
found raw pointer `*const isize`