Skip to content

Commit 40b8b7c

Browse files
committed
use error-pattern
1 parent ffb6aa1 commit 40b8b7c

File tree

1 file changed

+2
-2
lines changed
  • src/test/ui/consts/miri_unleashed

1 file changed

+2
-2
lines changed

src/test/ui/consts/miri_unleashed/drop.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// compile-flags: -Zunleash-the-miri-inside-of-you
22
// ignore-x86 FIXME: missing sysroot spans (#53081)
3+
// error-pattern: calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
34
#![deny(const_err)]
45

56
use std::mem::ManuallyDrop;
@@ -12,8 +13,7 @@ static TEST_OK: () = {
1213
};
1314

1415
// Make sure we catch executing bad drop functions.
15-
// The actual error is located in `real_drop_in_place` so we can't capture it with the
16-
// error annotations here.
16+
// The actual error is tested by the error-pattern above.
1717
static TEST_BAD: () = {
1818
let _v: Vec<i32> = Vec::new();
1919
//~^ WARN skipping const check

0 commit comments

Comments
 (0)