Document include!

Fixes #22309
This commit is contained in:
Steve Klabnik 2015-03-18 19:49:39 -04:00 committed by Manish Goregaokar
parent 12cb7c6a28
commit f8c63d00e2

View File

@ -404,4 +404,18 @@ pub mod builtin {
/// ```
#[macro_export]
macro_rules! cfg { ($cfg:tt) => ({ /* compiler built-in */ }) }
/// Parse the current given file as an expression.
///
/// This is generally a bad idea, because it's going to behave unhygenically.
///
/// # Examples
///
/// ```ignore
/// fn foo() {
/// include!("/path/to/a/file")
/// }
/// ```
#[macro_export]
macro_rules! include { ($cfg:tt) => ({ /* compiler built-in */ }) }
}