]> git.lizzy.rs Git - rust.git/commitdiff
use error-pattern
authorRalf Jung <post@ralfj.de>
Wed, 25 Dec 2019 10:18:39 +0000 (11:18 +0100)
committerRalf Jung <post@ralfj.de>
Wed, 25 Dec 2019 10:19:05 +0000 (11:19 +0100)
src/test/ui/consts/miri_unleashed/drop.rs

index 99b317cb0d9881f9b17658ef918d8f2d479df3fc..d66ca53dfb8d3aa7e5f4bc310cb22d8e50e89aeb 100644 (file)
@@ -1,5 +1,6 @@
 // compile-flags: -Zunleash-the-miri-inside-of-you
 // ignore-x86 FIXME: missing sysroot spans (#53081)
+// error-pattern: calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
 #![deny(const_err)]
 
 use std::mem::ManuallyDrop;
@@ -12,8 +13,7 @@ fn main() {}
 };
 
 // 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
-// error annotations here.
+// The actual error is tested by the error-pattern above.
 static TEST_BAD: () = {
     let _v: Vec<i32> = Vec::new();
     //~^ WARN skipping const check