From 3290774fa999d93f3b44b6830f2ad42e06ebe43c Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Thu, 19 Jul 2018 23:15:49 -0400 Subject: [PATCH] Add compile-fail test for #43196 Closes #43196 --- src/test/compile-fail/issue-43196.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/compile-fail/issue-43196.rs diff --git a/src/test/compile-fail/issue-43196.rs b/src/test/compile-fail/issue-43196.rs new file mode 100644 index 000000000000..ff53c9a5a549 --- /dev/null +++ b/src/test/compile-fail/issue-43196.rs @@ -0,0 +1,17 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +fn main() { + | +} +//~^ ERROR expected `|`, found `}` +| +//~^ ERROR expected item, found `|` +