1
1
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
2
- --> $DIR/qualif-indirect-mutation-fail.rs:13 :9
2
+ --> $DIR/qualif-indirect-mutation-fail.rs:12 :9
3
3
|
4
4
LL | let mut x = None;
5
5
| ^^^^^ the destructor for this type cannot be evaluated in constants
@@ -19,13 +19,13 @@ note: inside `std::ptr::drop_in_place::<String> - shim(Some(String))`
19
19
note: inside `std::ptr::drop_in_place::<Option<String>> - shim(Some(Option<String>))`
20
20
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
21
21
note: inside `A1`
22
- --> $DIR/qualif-indirect-mutation-fail.rs:19 :1
22
+ --> $DIR/qualif-indirect-mutation-fail.rs:18 :1
23
23
|
24
24
LL | };
25
25
| ^
26
26
27
27
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
28
- --> $DIR/qualif-indirect-mutation-fail.rs:29 :9
28
+ --> $DIR/qualif-indirect-mutation-fail.rs:28 :9
29
29
|
30
30
LL | let _z = x;
31
31
| ^^ the destructor for this type cannot be evaluated in constants
@@ -44,13 +44,13 @@ note: inside `std::ptr::drop_in_place::<String> - shim(Some(String))`
44
44
note: inside `std::ptr::drop_in_place::<Option<String>> - shim(Some(Option<String>))`
45
45
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
46
46
note: inside `A2`
47
- --> $DIR/qualif-indirect-mutation-fail.rs:30 :1
47
+ --> $DIR/qualif-indirect-mutation-fail.rs:29 :1
48
48
|
49
49
LL | };
50
50
| ^
51
51
52
52
error[E0493]: destructor of `(u32, Option<String>)` cannot be evaluated at compile-time
53
- --> $DIR/qualif-indirect-mutation-fail.rs:7 :9
53
+ --> $DIR/qualif-indirect-mutation-fail.rs:6 :9
54
54
|
55
55
LL | let mut a: (u32, Option<String>) = (0, None);
56
56
| ^^^^^ the destructor for this type cannot be evaluated in constant functions
59
59
| - value is dropped here
60
60
61
61
error[E0493]: destructor of `Option<T>` cannot be evaluated at compile-time
62
- --> $DIR/qualif-indirect-mutation-fail.rs:34 :9
62
+ --> $DIR/qualif-indirect-mutation-fail.rs:33 :9
63
63
|
64
64
LL | let x: Option<T> = None;
65
65
| ^ the destructor for this type cannot be evaluated in constant functions
@@ -68,15 +68,15 @@ LL | }
68
68
| - value is dropped here
69
69
70
70
error[E0493]: destructor of `Option<T>` cannot be evaluated at compile-time
71
- --> $DIR/qualif-indirect-mutation-fail.rs:42 :9
71
+ --> $DIR/qualif-indirect-mutation-fail.rs:41 :9
72
72
|
73
73
LL | let _y = x;
74
74
| ^^ the destructor for this type cannot be evaluated in constant functions
75
75
LL | }
76
76
| - value is dropped here
77
77
78
78
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
79
- --> $DIR/qualif-indirect-mutation-fail.rs:50 :9
79
+ --> $DIR/qualif-indirect-mutation-fail.rs:49 :9
80
80
|
81
81
LL | let mut y: Option<String> = None;
82
82
| ^^^^^ the destructor for this type cannot be evaluated in constant functions
85
85
| - value is dropped here
86
86
87
87
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
88
- --> $DIR/qualif-indirect-mutation-fail.rs:47 :9
88
+ --> $DIR/qualif-indirect-mutation-fail.rs:46 :9
89
89
|
90
90
LL | let mut x: Option<String> = None;
91
91
| ^^^^^ the destructor for this type cannot be evaluated in constant functions
94
94
| - value is dropped here
95
95
96
96
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
97
- --> $DIR/qualif-indirect-mutation-fail.rs:60 :9
97
+ --> $DIR/qualif-indirect-mutation-fail.rs:59 :9
98
98
|
99
99
LL | let y: Option<String> = None;
100
100
| ^ the destructor for this type cannot be evaluated in constant functions
@@ -103,7 +103,7 @@ LL | }
103
103
| - value is dropped here
104
104
105
105
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
106
- --> $DIR/qualif-indirect-mutation-fail.rs:57 :9
106
+ --> $DIR/qualif-indirect-mutation-fail.rs:56 :9
107
107
|
108
108
LL | let x: Option<String> = None;
109
109
| ^ the destructor for this type cannot be evaluated in constant functions
0 commit comments