about summary refs log tree commit diff
path: root/tests/ui/proc-macro/exports.rs
blob: ebe73e27ca800eb943f99d3ac58e3008eef620e4 (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() {}