Unit-like structs doc: Add compile fail tag

This commit is contained in:
Josef Brandl 2017-03-01 10:03:07 +01:00 committed by GitHub
parent 3c5001f0dd
commit 8f1a0afee1

View File

@ -255,7 +255,7 @@ rather than positions.
You can define a `struct` with no members at all:
```rust
```rust,compile_fail,E0423
struct Electron {} // Use empty braces...
struct Proton; // ...or just a semicolon.