about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorcolinmarsh19 <32608057+colinmarsh19@users.noreply.github.com>2017-11-25 08:40:42 -0700
committerGitHub <noreply@github.com>2017-11-25 08:40:42 -0700
commitba40f5c4ef4e2292ff92546236ef507438459eee (patch)
tree2b9755aa72b9078e937b10741e7c15e0a0849a64 /src
parentaabacf791abb5d50ca1cf0239268b8ef72f8faaa (diff)
downloadrust-ba40f5c4ef4e2292ff92546236ef507438459eee.tar.gz
rust-ba40f5c4ef4e2292ff92546236ef507438459eee.zip
Test for issue #46186
Diffstat (limited to 'src')
-rw-r--r--src/test/parse-fail/issue-46186.rs18
1 files changed, 18 insertions, 0 deletions
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 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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() {}