2018-08-08 12:28:26 +00:00
|
|
|
error[E0162]: irrefutable if-let pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/if-let.rs:13:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | foo!(a, 1, { //~ ERROR irrefutable if-let
|
|
|
|
| ^ irrefutable pattern
|
|
|
|
|
|
|
|
error[E0162]: irrefutable if-let pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/if-let.rs:16:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | bar!(a, 1, { //~ ERROR irrefutable if-let
|
|
|
|
| ^ irrefutable pattern
|
|
|
|
|
|
|
|
error[E0162]: irrefutable if-let pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/if-let.rs:22:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | if let a = 1 { //~ ERROR irrefutable if-let
|
|
|
|
| ^ irrefutable pattern
|
|
|
|
|
|
|
|
error[E0162]: irrefutable if-let pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/if-let.rs:26:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | if let a = 1 { //~ ERROR irrefutable if-let
|
|
|
|
| ^ irrefutable pattern
|
|
|
|
|
|
|
|
error[E0162]: irrefutable if-let pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/if-let.rs:36:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | } else if let a = 1 { //~ ERROR irrefutable if-let
|
|
|
|
| ^ irrefutable pattern
|
|
|
|
|
|
|
|
error[E0162]: irrefutable if-let pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/if-let.rs:42:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | } else if let a = 1 { //~ ERROR irrefutable if-let
|
|
|
|
| ^ irrefutable pattern
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0162`.
|