]> git.proxmox.com Git - rustc.git/blame - src/test/compile-fail-fulldeps/proc-macro/auxiliary/proc-macro-gates.rs
New upstream version 1.31.0+dfsg1
[rustc.git] / src / test / compile-fail-fulldeps / proc-macro / auxiliary / proc-macro-gates.rs
CommitLineData
83c7162d 1// Copyright 2018 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
83c7162d
XL
11// no-prefer-dynamic
12// force-host
7cac9316 13
83c7162d 14#![crate_type = "proc-macro"]
7cac9316 15
83c7162d 16extern crate proc_macro;
041b39d2 17
83c7162d 18use proc_macro::*;
7cac9316 19
83c7162d
XL
20#[proc_macro]
21pub fn m(a: TokenStream) -> TokenStream {
22 a
23}
a7813a04 24
83c7162d
XL
25#[proc_macro_attribute]
26pub fn a(_a: TokenStream, b: TokenStream) -> TokenStream {
27 b
54a0048b 28}