fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
836 B30 linesraw
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   = note: expected type `*mut isize`
8              found type `*const isize`
9
10error[E0308]: mismatched types
11  --> $DIR/ptr-coercion.rs:13:25
12   |
13LL |     let x: *mut isize = &42;
14   |                         ^^^ types differ in mutability
15   |
16   = note: expected type `*mut isize`
17              found type `&isize`
18
19error[E0308]: mismatched types
20  --> $DIR/ptr-coercion.rs:19:25
21   |
22LL |     let x: *mut isize = x;
23   |                         ^ types differ in mutability
24   |
25   = note: expected type `*mut isize`
26              found type `*const isize`
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0308`.