fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0745]: cannot take address of a temporary 2 --> $DIR/raw-ref-temp.rs:11:31 3 | 4LL | let ref_expr = &raw const 2; 5 | ^ temporary value 6 7error[E0745]: cannot take address of a temporary 8 --> $DIR/raw-ref-temp.rs:12:33 9 | 10LL | let mut_ref_expr = &raw mut 3; 11 | ^ temporary value 12 13error[E0745]: cannot take address of a temporary 14 --> $DIR/raw-ref-temp.rs:13:32 15 | 16LL | let ref_const = &raw const FOUR; 17 | ^^^^ temporary value 18 19error[E0745]: cannot take address of a temporary 20 --> $DIR/raw-ref-temp.rs:14:34 21 | 22LL | let mut_ref_const = &raw mut FOUR; 23 | ^^^^ temporary value 24 25error[E0745]: cannot take address of a temporary 26 --> $DIR/raw-ref-temp.rs:16:37 27 | 28LL | let field_ref_expr = &raw const (1, 2).0; 29 | ^^^^^^^^ temporary value 30 31error[E0745]: cannot take address of a temporary 32 --> $DIR/raw-ref-temp.rs:17:39 33 | 34LL | let mut_field_ref_expr = &raw mut (1, 2).0; 35 | ^^^^^^^^ temporary value 36 37error[E0745]: cannot take address of a temporary 38 --> $DIR/raw-ref-temp.rs:18:32 39 | 40LL | let field_ref = &raw const PAIR.0; 41 | ^^^^^^ temporary value 42 43error[E0745]: cannot take address of a temporary 44 --> $DIR/raw-ref-temp.rs:19:34 45 | 46LL | let mut_field_ref = &raw mut PAIR.0; 47 | ^^^^^^ temporary value 48 49error[E0745]: cannot take address of a temporary 50 --> $DIR/raw-ref-temp.rs:21:37 51 | 52LL | let index_ref_expr = &raw const [1, 2][0]; 53 | ^^^^^^^^^ temporary value 54 55error[E0745]: cannot take address of a temporary 56 --> $DIR/raw-ref-temp.rs:22:39 57 | 58LL | let mut_index_ref_expr = &raw mut [1, 2][0]; 59 | ^^^^^^^^^ temporary value 60 61error[E0745]: cannot take address of a temporary 62 --> $DIR/raw-ref-temp.rs:23:32 63 | 64LL | let index_ref = &raw const ARRAY[0]; 65 | ^^^^^^^^ temporary value 66 67error[E0745]: cannot take address of a temporary 68 --> $DIR/raw-ref-temp.rs:24:34 69 | 70LL | let mut_index_ref = &raw mut ARRAY[1]; 71 | ^^^^^^^^ temporary value 72 73error[E0745]: cannot take address of a temporary 74 --> $DIR/raw-ref-temp.rs:26:34 75 | 76LL | let ref_ascribe = &raw const (2: i32); 77 | ^^^^^^^^ temporary value 78 79error[E0745]: cannot take address of a temporary 80 --> $DIR/raw-ref-temp.rs:27:36 81 | 82LL | let mut_ref_ascribe = &raw mut (3: i32); 83 | ^^^^^^^^ temporary value 84 85error[E0745]: cannot take address of a temporary 86 --> $DIR/raw-ref-temp.rs:29:40 87 | 88LL | let ascribe_field_ref = &raw const (PAIR.0: i32); 89 | ^^^^^^^^^^^^^ temporary value 90 91error[E0745]: cannot take address of a temporary 92 --> $DIR/raw-ref-temp.rs:30:38 93 | 94LL | let ascribe_index_ref = &raw mut (ARRAY[0]: i32); 95 | ^^^^^^^^^^^^^^^ temporary value 96 97error: aborting due to 16 previous errors 98 99For more information about this error, try `rustc --explain E0745`.