Last active
August 20, 2018 20:45
-
-
Save durka/0dda35f371bdde94780fc65bb99c4bf0 to your computer and use it in GitHub Desktop.
macro missing_docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "a" | |
version = "0.1.0" | |
authors = ["Alex Burka <[email protected]>"] | |
[dependencies] | |
b = { path = "../b" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![deny(missing_docs)] | |
//! Docs | |
#[macro_use] extern crate b; | |
macro_rules! a { | |
($f:ident, $g:ident) => { | |
pub fn $f() {} | |
pub struct $g; | |
} | |
} | |
a!(bar, Bar); | |
b!(foo, Foo); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "b" | |
version = "0.1.0" | |
authors = ["Alex Burka <[email protected]>"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! b { | |
($f:ident, $g:ident) => { | |
pub fn $f() {} | |
pub struct $g; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment