We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb6aa1 commit 40b8b7cCopy full SHA for 40b8b7c
src/test/ui/consts/miri_unleashed/drop.rs
@@ -1,5 +1,6 @@
1
// compile-flags: -Zunleash-the-miri-inside-of-you
2
// ignore-x86 FIXME: missing sysroot spans (#53081)
3
+// error-pattern: calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
4
#![deny(const_err)]
5
6
use std::mem::ManuallyDrop;
@@ -12,8 +13,7 @@ static TEST_OK: () = {
12
13
};
14
15
// Make sure we catch executing bad drop functions.
-// The actual error is located in `real_drop_in_place` so we can't capture it with the
16
-// error annotations here.
+// The actual error is tested by the error-pattern above.
17
static TEST_BAD: () = {
18
let _v: Vec<i32> = Vec::new();
19
//~^ WARN skipping const check
0 commit comments