mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
50061f3b11
This makes it work for box patterns and in rust-analyzer.
11 lines
330 B
Plaintext
11 lines
330 B
Plaintext
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
|
|
|