fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
2.5 KiB74 linesraw
1error: raw borrows are not yet implemented
2  --> $DIR/raw-ref-temp-deref.rs:13:21
3   |
4LL |     let deref_ref = &raw const *PAIR_REF;
5   |                     ^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
8
9error: raw borrows are not yet implemented
10  --> $DIR/raw-ref-temp-deref.rs:14:27
11   |
12LL |     let field_deref_ref = &raw const PAIR_REF.0;
13   |                           ^^^^^^^^^^^^^^^^^^^^^
14   |
15   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
16
17error: raw borrows are not yet implemented
18  --> $DIR/raw-ref-temp-deref.rs:15:21
19   |
20LL |     let deref_ref = &raw const *ARRAY_REF;
21   |                     ^^^^^^^^^^^^^^^^^^^^^
22   |
23   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
24
25error: raw borrows are not yet implemented
26  --> $DIR/raw-ref-temp-deref.rs:16:27
27   |
28LL |     let index_deref_ref = &raw const ARRAY_REF[0];
29   |                           ^^^^^^^^^^^^^^^^^^^^^^^
30   |
31   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
32
33error: raw borrows are not yet implemented
34  --> $DIR/raw-ref-temp-deref.rs:17:21
35   |
36LL |     let deref_ref = &raw const *SLICE_REF;
37   |                     ^^^^^^^^^^^^^^^^^^^^^
38   |
39   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
40
41error: raw borrows are not yet implemented
42  --> $DIR/raw-ref-temp-deref.rs:18:27
43   |
44LL |     let index_deref_ref = &raw const SLICE_REF[1];
45   |                           ^^^^^^^^^^^^^^^^^^^^^^^
46   |
47   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
48
49error: raw borrows are not yet implemented
50  --> $DIR/raw-ref-temp-deref.rs:21:23
51   |
52LL |     let ascribe_ref = &raw const (x: i32);
53   |                       ^^^^^^^^^^^^^^^^^^^
54   |
55   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
56
57error: raw borrows are not yet implemented
58  --> $DIR/raw-ref-temp-deref.rs:22:25
59   |
60LL |     let ascribe_deref = &raw const (*ARRAY_REF: [i32; 2]);
61   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62   |
63   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
64
65error: raw borrows are not yet implemented
66  --> $DIR/raw-ref-temp-deref.rs:23:31
67   |
68LL |     let ascribe_index_deref = &raw const (ARRAY_REF[0]: i32);
69   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70   |
71   = note: for more information, see https://github.com/rust-lang/rust/issues/64490
72
73error: aborting due to 9 previous errors
74