summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/exports.rs
blob: a40c15908bc62d2b27ec677dda1c89a269059a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// force-host
// no-prefer-dynamic

#![crate_type = "proc-macro"]
#![allow(warnings)]

pub fn a() {} //~ ERROR: cannot export any items
pub struct B; //~ ERROR: cannot export any items
pub enum C {} //~ ERROR: cannot export any items
pub mod d {} //~ ERROR: cannot export any items

mod e {}
struct F;
enum G {}
fn h() {}