@@ -2,7 +2,9 @@ error[E0493]: destructors cannot be evaluated at compile-time
2
2
--> $DIR/min_const_fn.rs:37:25
3
3
|
4
4
LL | const fn into_inner(self) -> T { self.0 }
5
- | ^^^^ constant functions cannot evaluate destructors
5
+ | ^^^^ - value is dropped here
6
+ | |
7
+ | constant functions cannot evaluate destructors
6
8
7
9
error[E0723]: mutable references in const fn are unstable
8
10
--> $DIR/min_const_fn.rs:39:36
@@ -17,7 +19,9 @@ error[E0493]: destructors cannot be evaluated at compile-time
17
19
--> $DIR/min_const_fn.rs:44:28
18
20
|
19
21
LL | const fn into_inner_lt(self) -> T { self.0 }
20
- | ^^^^ constant functions cannot evaluate destructors
22
+ | ^^^^ - value is dropped here
23
+ | |
24
+ | constant functions cannot evaluate destructors
21
25
22
26
error[E0723]: mutable references in const fn are unstable
23
27
--> $DIR/min_const_fn.rs:46:42
@@ -32,7 +36,9 @@ error[E0493]: destructors cannot be evaluated at compile-time
32
36
--> $DIR/min_const_fn.rs:51:27
33
37
|
34
38
LL | const fn into_inner_s(self) -> T { self.0 }
35
- | ^^^^ constant functions cannot evaluate destructors
39
+ | ^^^^ - value is dropped here
40
+ | |
41
+ | constant functions cannot evaluate destructors
36
42
37
43
error[E0723]: mutable references in const fn are unstable
38
44
--> $DIR/min_const_fn.rs:53:38
0 commit comments