]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/exports.rs
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / 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() {}