]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/attrs-with-no-formal-in-generics-2.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / attributes / attrs-with-no-formal-in-generics-2.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 RefAny<'a, T>(&'a T);
8
9 impl<#[rustc_dummy] 'a, #[rustc_dummy] T, #[oops]> RefAny<'a, T> {}
10 //~^ ERROR trailing attribute after generic parameter
11
12 fn main() {}