rust/src/test/ui/parser/trait-object-trait-parens.rs

11 lines
289 B
Rust
Raw Normal View History

2018-10-20 16:02:06 -05:00
// compile-pass
// compile-flags: -Z parse-only
fn f<T: (Copy) + (?Sized) + (for<'a> Trait<'a>)>() {}
fn main() {
let _: Box<(Copy) + (?Sized) + (for<'a> Trait<'a>)>;
let _: Box<(?Sized) + (for<'a> Trait<'a>) + (Copy)>;
let _: Box<(for<'a> Trait<'a>) + (Copy) + (?Sized)>;
}