@@ -7,19 +7,6 @@ LL | let mut x = None;
77LL | };
88 | - value is dropped here
99
10- error[E0080]: calling non-const function `<Vec<u8> as Drop>::drop`
11- --> $DIR/qualif-indirect-mutation-fail.rs:18:1
12- |
13- LL | };
14- | ^ evaluation of `A1` failed inside this call
15- |
16- note: inside `std::ptr::drop_glue::<Option<String>> - shim(Some(Option<String>))`
17- --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
18- note: inside `std::ptr::drop_glue::<String> - shim(Some(String))`
19- --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
20- note: inside `std::ptr::drop_glue::<Vec<u8>> - shim(Some(Vec<u8>))`
21- --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
22-
2310error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
2411 --> $DIR/qualif-indirect-mutation-fail.rs:28:9
2512 |
@@ -28,19 +15,6 @@ LL | let _z = x;
2815LL | };
2916 | - value is dropped here
3017
31- error[E0080]: calling non-const function `<Vec<u8> as Drop>::drop`
32- --> $DIR/qualif-indirect-mutation-fail.rs:29:1
33- |
34- LL | };
35- | ^ evaluation of `A2` failed inside this call
36- |
37- note: inside `std::ptr::drop_glue::<Option<String>> - shim(Some(Option<String>))`
38- --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
39- note: inside `std::ptr::drop_glue::<String> - shim(Some(String))`
40- --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
41- note: inside `std::ptr::drop_glue::<Vec<u8>> - shim(Some(Vec<u8>))`
42- --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
43-
4418error[E0493]: destructor of `(u32, Option<String>)` cannot be evaluated at compile-time
4519 --> $DIR/qualif-indirect-mutation-fail.rs:6:9
4620 |
@@ -103,7 +77,6 @@ LL | let x: Option<String> = None;
10377LL | }
10478 | - value is dropped here
10579
106- error: aborting due to 11 previous errors
80+ error: aborting due to 9 previous errors
10781
108- Some errors have detailed explanations: E0080, E0493.
109- For more information about an error, try `rustc --explain E0080`.
82+ For more information about this error, try `rustc --explain E0493`.
0 commit comments