Files
rust/tests/ui/pattern/box-pattern-constructor-mismatch.stderr

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

11 lines
330 B
Plaintext
Raw Normal View History

error: mix of deref patterns and normal constructors
--> $DIR/box-pattern-constructor-mismatch.rs:8:9
|
LL | box _ => {}
| ^^^^^ matches on the result of dereferencing `Box<i32>`
LL | Box { .. } => {}
| ^^^^^^^^^^ matches directly on `Box<i32>`
error: aborting due to 1 previous error