2018-11-30 13:53:15 +00:00
|
|
|
error[E0005]: refutable pattern in local binding: `0u8..=1u8` not covered
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/const-pattern-irrefutable.rs:12:9
|
2017-11-04 03:01:56 +03:00
|
|
|
|
|
2018-11-30 13:53:15 +00:00
|
|
|
LL | let a = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered
|
2017-11-04 03:06:01 +03:00
|
|
|
| ^ interpreted as a constant pattern, not new variable
|
2017-11-04 03:01:56 +03:00
|
|
|
|
2018-11-30 13:53:15 +00:00
|
|
|
error[E0005]: refutable pattern in local binding: `0u8..=1u8` not covered
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/const-pattern-irrefutable.rs:13:9
|
2017-11-04 03:01:56 +03:00
|
|
|
|
|
2018-11-30 13:53:15 +00:00
|
|
|
LL | let c = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered
|
2017-11-04 03:06:01 +03:00
|
|
|
| ^ interpreted as a constant pattern, not new variable
|
2017-11-04 03:01:56 +03:00
|
|
|
|
2018-11-30 13:53:15 +00:00
|
|
|
error[E0005]: refutable pattern in local binding: `0u8..=1u8` not covered
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/const-pattern-irrefutable.rs:14:9
|
2017-11-04 03:01:56 +03:00
|
|
|
|
|
2018-11-30 13:53:15 +00:00
|
|
|
LL | let d = 4; //~ ERROR refutable pattern in local binding: `0u8..=1u8` not covered
|
2017-11-04 03:06:01 +03:00
|
|
|
| ^ interpreted as a constant pattern, not new variable
|
2017-11-04 03:01:56 +03:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0005`.
|