From ba40f5c4ef4e2292ff92546236ef507438459eee Mon Sep 17 00:00:00 2001 From: colinmarsh19 <32608057+colinmarsh19@users.noreply.github.com> Date: Sat, 25 Nov 2017 08:40:42 -0700 Subject: [PATCH] Test for issue #46186 --- src/test/parse-fail/issue-46186.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/parse-fail/issue-46186.rs diff --git a/src/test/parse-fail/issue-46186.rs b/src/test/parse-fail/issue-46186.rs new file mode 100644 index 00000000000..3f3dceeec5e --- /dev/null +++ b/src/test/parse-fail/issue-46186.rs @@ -0,0 +1,18 @@ +// Copyright 2017 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. + +// compile-flags: -Z parse-only + +struct Struct { + a: usize, +} //~ ERROR expected item, found ';' +//~| NOTE consider removing the semicolon + +fn main() {}