]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/trait-object-lifetime-parens.rs
1 #![allow(bare_trait_objects)]
5 fn f
<'a
, T
: Trait
+ ('a
)>() {}
//~ ERROR parenthesized lifetime bounds are not supported
8 let _
: Box
<Trait
+ ('a
)>; //~ ERROR parenthesized lifetime bounds are not supported
9 let _
: Box
<('a
) + Trait
>; //~ ERROR lifetime in trait object type must be followed by `+`