Skip to content

Commit

Permalink
Remove superfluous @check-fail header command.
Browse files Browse the repository at this point in the history
It's the default!

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
  • Loading branch information
eggyal and fmease committed Apr 12, 2024
1 parent 34c57df commit b99a3cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/ui/let-else/uninitialized-refutable-let-issue-123844.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// An uninitialized refutable let should not suggest `let else`, as it can't be used with deferred
// initialization.
//
// @check-fail

fn main() {
let Some(x); //~ ERROR refutable pattern in local binding
x = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0005]: refutable pattern in local binding
--> $DIR/uninitialized-refutable-let-issue-123844.rs:8:9
--> $DIR/uninitialized-refutable-let-issue-123844.rs:6:9
|
LL | let Some(x);
| ^^^^^^^ pattern `None` not covered
Expand Down

0 comments on commit b99a3cf

Please sign in to comment.