@@ -2,7 +2,9 @@ error[E0493]: destructors cannot be evaluated at compile-time
2
2
--> $DIR/static-drop-scope.rs:9:60
3
3
|
4
4
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
5
- | ^^^^^^^^ statics cannot evaluate destructors
5
+ | ^^^^^^^^- value is dropped here
6
+ | |
7
+ | statics cannot evaluate destructors
6
8
7
9
error[E0716]: temporary value dropped while borrowed
8
10
--> $DIR/static-drop-scope.rs:9:60
@@ -18,7 +20,9 @@ error[E0493]: destructors cannot be evaluated at compile-time
18
20
--> $DIR/static-drop-scope.rs:13:59
19
21
|
20
22
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
21
- | ^^^^^^^^ constants cannot evaluate destructors
23
+ | ^^^^^^^^- value is dropped here
24
+ | |
25
+ | constants cannot evaluate destructors
22
26
23
27
error[E0716]: temporary value dropped while borrowed
24
28
--> $DIR/static-drop-scope.rs:13:59
@@ -34,37 +38,50 @@ error[E0493]: destructors cannot be evaluated at compile-time
34
38
--> $DIR/static-drop-scope.rs:17:28
35
39
|
36
40
LL | static EARLY_DROP_S: i32 = (WithDtor, 0).1;
37
- | ^^^^^^^^^^^^^ statics cannot evaluate destructors
41
+ | ^^^^^^^^^^^^^ - value is dropped here
42
+ | |
43
+ | statics cannot evaluate destructors
38
44
39
45
error[E0493]: destructors cannot be evaluated at compile-time
40
46
--> $DIR/static-drop-scope.rs:20:27
41
47
|
42
48
LL | const EARLY_DROP_C: i32 = (WithDtor, 0).1;
43
- | ^^^^^^^^^^^^^ constants cannot evaluate destructors
49
+ | ^^^^^^^^^^^^^ - value is dropped here
50
+ | |
51
+ | constants cannot evaluate destructors
44
52
45
53
error[E0493]: destructors cannot be evaluated at compile-time
46
54
--> $DIR/static-drop-scope.rs:23:24
47
55
|
48
56
LL | const fn const_drop<T>(_: T) {}
49
- | ^ constant functions cannot evaluate destructors
57
+ | ^ - value is dropped here
58
+ | |
59
+ | constant functions cannot evaluate destructors
50
60
51
61
error[E0493]: destructors cannot be evaluated at compile-time
52
62
--> $DIR/static-drop-scope.rs:27:5
53
63
|
54
64
LL | (x, ()).1
55
65
| ^^^^^^^ constant functions cannot evaluate destructors
66
+ LL |
67
+ LL | }
68
+ | - value is dropped here
56
69
57
70
error[E0493]: destructors cannot be evaluated at compile-time
58
71
--> $DIR/static-drop-scope.rs:31:34
59
72
|
60
73
LL | const EARLY_DROP_C_OPTION: i32 = (Some(WithDtor), 0).1;
61
- | ^^^^^^^^^^^^^^^^^^^ constants cannot evaluate destructors
74
+ | ^^^^^^^^^^^^^^^^^^^ - value is dropped here
75
+ | |
76
+ | constants cannot evaluate destructors
62
77
63
78
error[E0493]: destructors cannot be evaluated at compile-time
64
79
--> $DIR/static-drop-scope.rs:36:43
65
80
|
66
81
LL | const EARLY_DROP_C_OPTION_CONSTANT: i32 = (HELPER, 0).1;
67
- | ^^^^^^^^^^^ constants cannot evaluate destructors
82
+ | ^^^^^^^^^^^ - value is dropped here
83
+ | |
84
+ | constants cannot evaluate destructors
68
85
69
86
error: aborting due to 10 previous errors
70
87
0 commit comments