2016-07-11 11:29:45 -05:00
|
|
|
// This test checks variations on `<#[attr] 'a, #[oops]>`, where
|
|
|
|
// `#[oops]` is left dangling (that is, it is unattached, with no
|
|
|
|
// formal binding following it).
|
|
|
|
|
|
|
|
struct RefIntPair<'a, 'b>(&'a u32, &'b u32);
|
|
|
|
|
|
|
|
fn hof_lt<Q>(_: Q)
|
2019-01-12 19:12:41 -06:00
|
|
|
where Q: for <#[allow(unused)] 'a, 'b, #[oops]> Fn(RefIntPair<'a,'b>) -> &'b u32
|
2016-07-11 11:29:45 -05:00
|
|
|
//~^ ERROR trailing attribute after lifetime parameters
|
2019-01-12 19:12:41 -06:00
|
|
|
{}
|
2016-07-11 11:29:45 -05:00
|
|
|
|
2019-01-12 19:12:41 -06:00
|
|
|
fn main() {}
|