granite-rust/src/test/ui/parser/trait-object-lifetime-parens.rs
2018-12-25 21:08:33 -07:00

8 lines
314 B
Rust

// compile-flags: -Z parse-only -Z continue-parse-after-error
fn f<T: Copy + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not supported
fn main() {
let _: Box<Copy + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
let _: Box<('a) + Copy>; //~ ERROR expected type, found `'a`
}