|
1 | | -error[E0714]: temporary value dropped while borrowed |
| 1 | +error[E0716]: temporary value dropped while borrowed |
2 | 2 | --> $DIR/const-int-conversion.rs:14:28 |
3 | 3 | | |
4 | 4 | LL | let x: &'static i32 = &(5_i32.reverse_bits()); |
|
9 | 9 | | |
10 | 10 | = note: borrowed value must be valid for the static lifetime... |
11 | 11 |
|
12 | | -error[E0714]: temporary value dropped while borrowed |
| 12 | +error[E0716]: temporary value dropped while borrowed |
13 | 13 | --> $DIR/const-int-conversion.rs:16:28 |
14 | 14 | | |
15 | 15 | LL | let y: &'static i32 = &(i32::from_be_bytes([0x12, 0x34, 0x56, 0x78])); |
|
20 | 20 | | |
21 | 21 | = note: borrowed value must be valid for the static lifetime... |
22 | 22 |
|
23 | | -error[E0714]: temporary value dropped while borrowed |
| 23 | +error[E0716]: temporary value dropped while borrowed |
24 | 24 | --> $DIR/const-int-conversion.rs:18:28 |
25 | 25 | | |
26 | 26 | LL | let z: &'static i32 = &(i32::from_le_bytes([0x12, 0x34, 0x56, 0x78])); |
|
31 | 31 | | |
32 | 32 | = note: borrowed value must be valid for the static lifetime... |
33 | 33 |
|
34 | | -error[E0714]: temporary value dropped while borrowed |
| 34 | +error[E0716]: temporary value dropped while borrowed |
35 | 35 | --> $DIR/const-int-conversion.rs:20:28 |
36 | 36 | | |
37 | 37 | LL | let a: &'static i32 = &(i32::from_be(i32::from_ne_bytes([0x80, 0, 0, 0]))); |
|
42 | 42 | | |
43 | 43 | = note: borrowed value must be valid for the static lifetime... |
44 | 44 |
|
45 | | -error[E0714]: temporary value dropped while borrowed |
| 45 | +error[E0716]: temporary value dropped while borrowed |
46 | 46 | --> $DIR/const-int-conversion.rs:22:29 |
47 | 47 | | |
48 | 48 | LL | let b: &'static [u8] = &(0x12_34_56_78_i32.to_be_bytes()); |
|
53 | 53 | | |
54 | 54 | = note: borrowed value must be valid for the static lifetime... |
55 | 55 |
|
56 | | -error[E0714]: temporary value dropped while borrowed |
| 56 | +error[E0716]: temporary value dropped while borrowed |
57 | 57 | --> $DIR/const-int-conversion.rs:24:29 |
58 | 58 | | |
59 | 59 | LL | let c: &'static [u8] = &(0x12_34_56_78_i32.to_le_bytes()); |
|
64 | 64 | | |
65 | 65 | = note: borrowed value must be valid for the static lifetime... |
66 | 66 |
|
67 | | -error[E0714]: temporary value dropped while borrowed |
| 67 | +error[E0716]: temporary value dropped while borrowed |
68 | 68 | --> $DIR/const-int-conversion.rs:26:29 |
69 | 69 | | |
70 | 70 | LL | let d: &'static [u8] = &(i32::min_value().to_be().to_ne_bytes()); |
|
77 | 77 |
|
78 | 78 | error: aborting due to 7 previous errors |
79 | 79 |
|
80 | | -For more information about this error, try `rustc --explain E0714`. |
| 80 | +For more information about this error, try `rustc --explain E0716`. |
0 commit comments