-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate check_expr in builtin calls with error
- Loading branch information
1 parent
53e4b9d
commit 87efc9a
Showing
3 changed files
with
62 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fn main() -> Result<(), ()> { | ||
a(b(c(d(e( | ||
//~^ ERROR cannot find function `a` in this scope | ||
//~| ERROR cannot find function `b` in this scope | ||
//~| ERROR cannot find function `c` in this scope | ||
//~| ERROR cannot find function `d` in this scope | ||
//~| ERROR cannot find function `e` in this scope | ||
z???????????????????????????????????????????????????????????????????????????????????????? | ||
????????????????????????????????????????????????????????????????????????????????????????? | ||
?????????????????????????????????????????????????????????????????? | ||
//~^^^ ERROR cannot find value `z` in this scope | ||
))))) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
error[E0425]: cannot find value `z` in this scope | ||
--> $DIR/fn-to-method-deeply-nested.rs:8:9 | ||
| | ||
LL | z???????????????????????????????????????????????????????????????????????????????????????? | ||
| ^ not found in this scope | ||
|
||
error[E0425]: cannot find function `e` in this scope | ||
--> $DIR/fn-to-method-deeply-nested.rs:2:13 | ||
| | ||
LL | a(b(c(d(e( | ||
| ^ not found in this scope | ||
|
||
error[E0425]: cannot find function `d` in this scope | ||
--> $DIR/fn-to-method-deeply-nested.rs:2:11 | ||
| | ||
LL | a(b(c(d(e( | ||
| ^ not found in this scope | ||
|
||
error[E0425]: cannot find function `c` in this scope | ||
--> $DIR/fn-to-method-deeply-nested.rs:2:9 | ||
| | ||
LL | a(b(c(d(e( | ||
| ^ not found in this scope | ||
|
||
error[E0425]: cannot find function `b` in this scope | ||
--> $DIR/fn-to-method-deeply-nested.rs:2:7 | ||
| | ||
LL | a(b(c(d(e( | ||
| ^ not found in this scope | ||
|
||
error[E0425]: cannot find function `a` in this scope | ||
--> $DIR/fn-to-method-deeply-nested.rs:2:5 | ||
| | ||
LL | a(b(c(d(e( | ||
| ^ not found in this scope | ||
|
||
error: aborting due to 6 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0425`. |