mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
14 lines
285 B
Rust
14 lines
285 B
Rust
fn foo() {
|
|
let (mut a, mut b) = (0, 1);
|
|
(b, a, ..) = (a, b);
|
|
(_) = ..;
|
|
struct S { a: i32 }
|
|
S { .. } = S { ..S::default() };
|
|
Some(..) = Some(0);
|
|
Ok(_) = 0;
|
|
let (a, b);
|
|
[a, .., b] = [1, .., 2];
|
|
(_, _) = (a, b);
|
|
(_) = (a, b);
|
|
_ = (a, b);
|
|
}
|