mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Rust: Add labelled block example
This commit is contained in:
@@ -289,6 +289,14 @@ class _:
|
||||
}
|
||||
};
|
||||
```
|
||||
```rust
|
||||
let x = 'label: {
|
||||
if exit() {
|
||||
break 'label 42;
|
||||
}
|
||||
0;
|
||||
};
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user