Fix ui test errors

This commit is contained in:
Andrew Cann 2018-03-01 01:26:51 +08:00
parent 59688e119e
commit edb9d2b20d
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
error[E0005]: refutable pattern in local binding: `Err(_)` not covered
--> $DIR/feature-gate-exhaustive-patterns.rs:16:9
|
16 | let Ok(_x) = foo(); //~ ERROR refutable pattern in local binding
LL | let Ok(_x) = foo(); //~ ERROR refutable pattern in local binding
| ^^^^^^ pattern `Err(_)` not covered
error: aborting due to previous error

View file

@ -1,7 +1,7 @@
error[E0600]: cannot apply unary operator `!` to type `!`
--> $DIR/expr_unary.rs:17:16
|
17 | let x: ! = ! { return; }; //~ ERROR unreachable
LL | let x: ! = ! { return; }; //~ ERROR unreachable
| ^^^^^^^^^^^^^
error: unreachable expression