diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-07-20 15:50:33 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-07-25 07:09:31 -0700 |
| commit | 20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94 (patch) | |
| tree | c53a883de937df40bc562f244fef8c5e5dddc903 /src/doc | |
| parent | daeb6077c87dab99f2d301d06965558b8d064c28 (diff) | |
| download | rust-20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94.tar.gz rust-20b4f86d13b177bf66d1fa4fefbfcc1bb552cb94.zip | |
Stabilize the `compile_error_macro` feature
Stabilizes: * `compile_error!` as a macro defined by rustc Closes #40872
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/compile-error.md | 20 |
1 files changed, 0 insertions, 20 deletions
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 -} -``` |
