2019-05-28 13:45:27 -05:00
|
|
|
#![allow(bare_trait_objects)]
|
|
|
|
|
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`
|
2020-03-05 00:54:22 -06:00
|
|
|
//~| ERROR expected `while`, `for`, `loop` or `{` after a label
|
|
|
|
//~| ERROR expected expression, found `)`
|
2017-04-04 17:12:53 -05:00
|
|
|
}
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
fn main() {}
|