From 49b4804d291bc8cc93e7b4b8c24f344aa3e3f484 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 29 Jun 2020 10:56:10 +0800 Subject: [PATCH] Ignore example compile in rustc-attrs doc --- src/doc/unstable-book/src/language-features/rustc-attrs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/unstable-book/src/language-features/rustc-attrs.md b/src/doc/unstable-book/src/language-features/rustc-attrs.md index ad96aaf8281d..2967200faf80 100644 --- a/src/doc/unstable-book/src/language-features/rustc-attrs.md +++ b/src/doc/unstable-book/src/language-features/rustc-attrs.md @@ -18,7 +18,7 @@ Note that it only work best with sized type without generics. ## Examples -```rust +```rust,ignore #![feature(rustc_attrs)] #[rustc_layout(abi, size)] @@ -30,7 +30,7 @@ pub enum X { When that is compiled, the compiler will error with something like -``` +```text error: abi: Aggregate { sized: true } --> src/lib.rs:4:1 |