fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
893 B27 linesraw
1error[E0493]: destructors cannot be evaluated at compile-time
2  --> $DIR/drop-failure.rs:7:9
3   |
4LL |     let x = Some(Vec::new());
5   |         ^ constants cannot evaluate destructors
6
7error[E0493]: destructors cannot be evaluated at compile-time
8  --> $DIR/drop-failure.rs:20:9
9   |
10LL |     let vec_tuple = (Vec::new(),);
11   |         ^^^^^^^^^ constants cannot evaluate destructors
12
13error[E0493]: destructors cannot be evaluated at compile-time
14  --> $DIR/drop-failure.rs:28:9
15   |
16LL |     let x: Result<_, Vec<i32>> = Ok(Vec::new());
17   |         ^ constants cannot evaluate destructors
18
19error[E0493]: destructors cannot be evaluated at compile-time
20  --> $DIR/drop-failure.rs:38:9
21   |
22LL |     let mut tmp = None;
23   |         ^^^^^^^ constants cannot evaluate destructors
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0493`.