]> git.proxmox.com Git - rustc.git/blame - src/test/compile-fail/issue-32655.rs
New upstream version 1.28.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-32655.rs
CommitLineData
7453a54e 1// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
223e47cc
LB
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
a7813a04
XL
11#![allow(dead_code)]
12#![feature(rustc_attrs)]
1a4d82fc 13
a7813a04
XL
14macro_rules! foo (
15 () => (
9e0c209e 16 #[derive_Clone] //~ ERROR attributes of the form
a7813a04
XL
17 struct T;
18 );
19);
223e47cc 20
a7813a04
XL
21macro_rules! bar (
22 ($e:item) => ($e)
23);
223e47cc 24
a7813a04
XL
25foo!();
26
27bar!(
9e0c209e 28 #[derive_Clone] //~ ERROR attributes of the form
a7813a04
XL
29 struct S;
30);
31
9e0c209e 32fn main() {}