2015-01-04 02:35:14 -08:00
|
|
|
// Copyright 2014 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.
|
|
|
|
|
|
2016-11-01 12:57:23 -04:00
|
|
|
// compile-flags: -Z parse-only -Z continue-parse-after-error
|
2015-02-09 20:01:45 +01:00
|
|
|
|
2015-01-04 02:35:14 -08:00
|
|
|
struct Baz<U> where U: Eq(U); //This is parsed as the new Fn* style parenthesis syntax.
|
|
|
|
|
struct Baz<U> where U: Eq(U) -> R; // Notice this parses as well.
|
|
|
|
|
struct Baz<U>(U) where U: Eq; // This rightfully signals no error as well.
|
2017-01-17 21:18:29 +03:00
|
|
|
struct Foo<T> where T: Copy, (T); //~ ERROR expected one of `+`, `:`, `==`, or `=`, found `;`
|
2015-01-04 02:35:14 -08:00
|
|
|
|
|
|
|
|
fn main() {}
|