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).
|
|
|
|
|
2018-03-08 13:24:10 -06:00
|
|
|
#![feature(rustc_attrs)]
|
2016-07-11 11:29:45 -05:00
|
|
|
|
|
|
|
struct RefAny<'a, T>(&'a T);
|
|
|
|
|
2017-01-17 12:18:29 -06:00
|
|
|
impl<#[rustc_1] 'a, #[rustc_2] T, #[oops]> RefAny<'a, T> {}
|
2019-02-05 10:00:19 -06:00
|
|
|
//~^ ERROR trailing attribute after type parameter
|
2016-07-11 11:29:45 -05:00
|
|
|
|
2017-01-17 12:18:29 -06:00
|
|
|
fn main() {}
|