From 73e1f8970fc9a74c13bd7ae2655c66f03d3fc69f Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sat, 20 Oct 2018 23:36:17 +0300 Subject: Move parse-fail tests to UI --- src/test/ui/parser/multitrait.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/ui/parser/multitrait.rs (limited to 'src/test/ui/parser/multitrait.rs') diff --git a/src/test/ui/parser/multitrait.rs b/src/test/ui/parser/multitrait.rs new file mode 100644 index 00000000000..b7c9b165884 --- /dev/null +++ b/src/test/ui/parser/multitrait.rs @@ -0,0 +1,21 @@ +// Copyright 2012 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 S { + y: isize +} + +impl Cmp, ToString for S { +//~^ ERROR: expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,` + fn eq(&&other: S) { false } + fn to_string(&self) -> String { "hi".to_string() } +} -- cgit 1.4.1-3-g733a5