]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/auxiliary/reexports.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / rustdoc / auxiliary / reexports.rs
CommitLineData
136023e0
XL
1#![feature(decl_macro)]
2
3pub macro addr_of($place:expr) {
4 &raw const $place
5}
6
7pub macro addr_of_self($place:expr) {
8 &raw const $place
9}
10
11pub macro addr_of_crate($place:expr) {
12 &raw const $place
13}
14
15pub struct Foo;
16pub struct FooSelf;
17pub struct FooCrate;
18
19pub enum Bar { Foo, }
20pub enum BarSelf { Foo, }
21pub enum BarCrate { Foo, }
22
23pub fn foo() {}
24pub fn foo_self() {}
25pub fn foo_crate() {}
26
27pub type Type = i32;
28pub type TypeSelf = i32;
29pub type TypeCrate = i32;
30
31pub union Union {
32 a: i8,
33 b: i8,
34}
35pub union UnionSelf {
36 a: i8,
37 b: i8,
38}
39pub union UnionCrate {
40 a: i8,
41 b: i8,
42}