2019-01-06 09:33:05 -06:00
|
|
|
// compile-flags: -Z continue-parse-after-error
|
2017-04-04 17:12:53 -05:00
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
trait Trait {}
|
2017-04-04 17:12:53 -05:00
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
fn f<'a, T: Trait + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not supported
|
|
|
|
|
|
|
|
fn check<'a>() {
|
|
|
|
let _: Box<Trait + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
|
2019-03-26 19:36:07 -05:00
|
|
|
let _: Box<('a) + Trait>;
|
|
|
|
//~^ ERROR expected type, found `'a`
|
|
|
|
//~| ERROR expected `:`, found `)`
|
|
|
|
//~| ERROR chained comparison operators require parentheses
|
2017-04-04 17:12:53 -05:00
|
|
|
}
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
fn main() {}
|