From 20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 20 Jul 2017 15:50:33 -0700 Subject: Stabilize the `compile_error_macro` feature Stabilizes: * `compile_error!` as a macro defined by rustc Closes #40872 --- .../src/language-features/compile-error.md | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/doc/unstable-book/src/language-features/compile-error.md (limited to 'src/doc') diff --git a/src/doc/unstable-book/src/language-features/compile-error.md b/src/doc/unstable-book/src/language-features/compile-error.md deleted file mode 100644 index 4de631e1fb3..00000000000 --- a/src/doc/unstable-book/src/language-features/compile-error.md +++ /dev/null @@ -1,20 +0,0 @@ -# `compile_error` - -The tracking issue for this feature is: [#40872] - -[#40872]: https://github.com/rust-lang/rust/issues/40872 - ------------------------- - -The `compile_error` feature adds a macro which will generate a compilation -error with the specified error message. - -## Examples - -```rust,compile_fail -#![feature(compile_error)] - -fn main() { - compile_error!("The error message"); //ERROR The error message -} -``` -- cgit 1.4.1-3-g733a5