]> git.proxmox.com Git - rustc.git/blob - tests/ui/ptr-coercion.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / ptr-coercion.stderr
1 error[E0308]: mismatched types
2 --> $DIR/ptr-coercion.rs:7:25
3 |
4 LL | 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
12 error[E0308]: mismatched types
13 --> $DIR/ptr-coercion.rs:13:25
14 |
15 LL | 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
23 error[E0308]: mismatched types
24 --> $DIR/ptr-coercion.rs:19:25
25 |
26 LL | 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
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0308`.