]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/issue-32655.rs
25ecd5d08626ddc0ccdf699ff66be735889efff8
[rust.git] / src / test / compile-fail / issue-32655.rs
1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![allow(dead_code)]
12 #![feature(rustc_attrs)]
13
14 macro_rules! foo (
15     () => (
16         #[derive_Clone] //~ ERROR attributes of the form
17         struct T;
18     );
19 );
20
21 macro_rules! bar (
22     ($e:item) => ($e)
23 );
24
25 foo!();
26
27 bar!(
28     #[derive_Clone] //~ ERROR attributes of the form
29     struct S;
30 );
31
32 fn main() {}