]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/exports.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / proc-macro / exports.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5 #![allow(warnings)]
6
7 pub fn a() {} //~ ERROR: cannot export any items
8 pub struct B; //~ ERROR: cannot export any items
9 pub enum C {} //~ ERROR: cannot export any items
10 pub mod d {} //~ ERROR: cannot export any items
11
12 mod e {}
13 struct F;
14 enum G {}
15 fn h() {}