Unit-like structs doc: Add compile fail tag
This commit is contained in:
parent
3c5001f0dd
commit
8f1a0afee1
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user