@@ -10,7 +10,7 @@ LL | };
10
10
error[E0493]: destructor of `[T; 0]` cannot be evaluated at compile-time
11
11
--> $DIR/generic-slice.rs:15:32
12
12
|
13
- LL | let x: &'static [T] = &[];
13
+ LL | let x: &'static [T] = &[];
14
14
| ^^ the destructor for this type cannot be evaluated in constants
15
15
...
16
16
LL | };
@@ -27,12 +27,12 @@ LL | &x
27
27
| |
28
28
| borrowed value does not live long enough
29
29
| using this value as a constant requires that `x` is borrowed for `'a`
30
- ...
30
+ LL |
31
31
LL | };
32
32
| - `x` dropped here while still borrowed
33
33
34
34
error[E0493]: destructor of `[RefCell<Vec<i32>>; 0]` cannot be evaluated at compile-time
35
- --> $DIR/generic-slice.rs:24 :20
35
+ --> $DIR/generic-slice.rs:23 :20
36
36
|
37
37
LL | let x: &[_] = &[];
38
38
| ^^ the destructor for this type cannot be evaluated in statics
@@ -41,7 +41,7 @@ LL | };
41
41
| - value is dropped here
42
42
43
43
error[E0493]: destructor of `[RefCell<Vec<i32>>; 0]` cannot be evaluated at compile-time
44
- --> $DIR/generic-slice.rs:30 :20
44
+ --> $DIR/generic-slice.rs:29 :20
45
45
|
46
46
LL | let x: &[_] = &[];
47
47
| ^^ the destructor for this type cannot be evaluated in statics
@@ -50,7 +50,7 @@ LL | };
50
50
| - value is dropped here
51
51
52
52
error[E0597]: `x` does not live long enough
53
- --> $DIR/generic-slice.rs:32 :5
53
+ --> $DIR/generic-slice.rs:31 :5
54
54
|
55
55
LL | &x
56
56
| ^^
0 commit comments