]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/attrs-with-no-formal-in-generics-1.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / attributes / attrs-with-no-formal-in-generics-1.rs
1 // This test checks variations on `<#[attr] 'a, #[oops]>`, where
2 // `#[oops]` is left dangling (that is, it is unattached, with no
3 // formal binding following it).
4
5 #![feature(rustc_attrs)]
6
7 struct RefIntPair<'a, 'b>(&'a u32, &'b u32);
8
9 impl<#[rustc_dummy] 'a, 'b, #[oops]> RefIntPair<'a, 'b> {
10     //~^ ERROR trailing attribute after generic parameter
11 }
12
13 fn main() {}