Rust: Add labelled block example

This commit is contained in:
Tom Hvitved
2024-09-30 14:44:42 +02:00
parent 4513643a0f
commit 5ae669937c
11 changed files with 54 additions and 5 deletions

View File

@@ -289,6 +289,14 @@ class _:
}
};
```
```rust
let x = 'label: {
if exit() {
break 'label 42;
}
0;
};
```
"""