rust/tests/ui/pattern/move-ref-patterns/by-move-sub-pat-unreachable.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
345 B
Rust
Raw Normal View History

// When conflicts between by-move bindings in `by_move_1 @ has_by_move` patterns
// happen and that code is unreachable according to borrowck, we accept this code.
// In particular, we want to ensure here that an ICE does not happen, which it did originally.
// check-pass
fn main() {
return;
struct S;
let a @ (b, c) = (S, S);
}