]> git.lizzy.rs Git - rust.git/commitdiff
Mir validation can't cope with `mem::uninitialized::<SomeEnum>()`
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 28 Aug 2017 12:53:43 +0000 (14:53 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 28 Aug 2017 12:53:43 +0000 (14:53 +0200)
tests/run-pass/btreemap.rs

index c84711a26fe0601bbc3c0f17713e874517765b22..55e6b07a6585467d8bbef34fd510f9c37a486146 100644 (file)
@@ -1,3 +1,6 @@
+// mir validation can't cope with `mem::uninitialized::<SomeEnum>()`
+// compile-flags: -Zmir-emit-validate=0
+
 #[derive(PartialEq, Eq, PartialOrd, Ord)]
 pub enum Foo {
     A(&'static str),