about summary refs log tree commit diff
path: root/tests/rustdoc/source-code-pages/source-version-separator.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-08-14 10:05:11 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-08-14 10:07:25 +0800
commitc78177b7f93c9b691a9b8365eaba9c8d11df4cd0 (patch)
treefc02b954267bf560d112662d81c771432a38cdd7 /tests/rustdoc/source-code-pages/source-version-separator.rs
parente52666380f6f03fb1211138171e0ef626ceb468d (diff)
downloadrust-c78177b7f93c9b691a9b8365eaba9c8d11df4cd0.tar.gz
rust-c78177b7f93c9b691a9b8365eaba9c8d11df4cd0.zip
Add guard to let-chain for replace_match_with_if_let
```rust
fn main() {
    match$0 Some(0) {
        Some(n) if n % 2 == 0 && n != 6 => (),
        _ => code(),
    }
}
```
->
```rust
fn main() {
    if let Some(n) = Some(0) && n % 2 == 0 && n != 6 {
        ()
    } else {
        code()
    }
}
Diffstat (limited to 'tests/rustdoc/source-code-pages/source-version-separator.rs')
0 files changed, 0 insertions, 0 deletions