Ignore example compile in rustc-attrs doc

This commit is contained in:
Ivan Tham 2020-06-29 10:56:10 +08:00
parent 0e6f1093be
commit 49b4804d29

View file

@ -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
|