Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never stop due to errors before borrow checking
- Loading branch information
Showing
49 changed files
with
409 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
fn main() {} | ||
|
||
const fn slice([a, b]: &[i32]) -> i32 { //~ ERROR refutable pattern in function argument | ||
a + b | ||
a + b //~ ERROR can only call other `const fn` within a `const fn` | ||
//~^ WARN use of possibly uninitialized variable: `a` | ||
//~| WARN this error has been downgraded to a warning for backwards compatibility | ||
//~| WARN this represents potential undefined behavior in your code and this warning will | ||
//~| WARN use of possibly uninitialized variable: `b` | ||
//~| WARN this error has been downgraded to a warning for backwards compatibility | ||
//~| WARN this represents potential undefined behavior in your code and this warning will | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
error[E0004]: non-exhaustive patterns: `&S` not covered | ||
--> $DIR/match_ice.rs:7:11 | ||
--> $DIR/match_ice.rs:8:11 | ||
| | ||
LL | match C { | ||
| ^ pattern `&S` not covered | ||
| | ||
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms | ||
|
||
error: aborting due to previous error | ||
error[E0277]: can't compare `S` with `S` | ||
| | ||
= help: the trait `std::cmp::PartialEq` is not implemented for `S` | ||
= note: required because of the requirements on the impl of `std::cmp::PartialEq` for `&S` | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0004`. | ||
Some errors occurred: E0004, E0277. | ||
For more information about an error, try `rustc --explain E0004`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.