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
|
2020-03-07 06:52:55 -06:00
|
|
|
let _: Box<('a) + Trait>; //~ ERROR lifetime in trait object type must be followed by `+`
|
2017-04-04 17:12:53 -05:00
|
|
|
}
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
fn main() {}
|