blob: afcf8a8103d9dcccbbb5abce4c6a8c68cccf062c [file]
warning: irrefutable `if let` pattern
--> $DIR/let-offset-of.rs:14:8
|
LL | if let x = offset_of!(Foo, field) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this pattern will always match, so the `if let` is useless
= help: consider replacing the `if let` with a `let`
= note: `#[warn(irrefutable_let_patterns)]` on by default
warning: unreachable `else` clause
--> $DIR/let-offset-of.rs:17:36
|
LL | let x = offset_of!(Foo, field) else { return; };
| ------------------------------ ^^^^
| |
| assigning to binding pattern will always succeed
|
= note: this pattern always matches, so the else clause is unreachable
warning: 2 warnings emitted