]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/attrs-with-no-formal-in-generics-1.rs
Merge commit 'e8dca3e87d164d2806098c462c6ce41301341f68' into sync_from_cg_gcc
[rust.git] / src / test / 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() {}