mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
13 lines
357 B
Rust
13 lines
357 B
Rust
// This test checks variations on `<#[attr] 'a, #[oops]>`, where
|
|
// `#[oops]` is left dangling (that is, it is unattached, with no
|
|
// formal binding following it).
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
struct RefAny<'a, T>(&'a T);
|
|
|
|
impl<#[rustc_dummy] 'a, #[rustc_dummy] T, #[oops]> RefAny<'a, T> {}
|
|
//~^ ERROR trailing attribute after generic parameter
|
|
|
|
fn main() {}
|