-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0868f18
commit 01babdc
Showing
5 changed files
with
57 additions
and
1 deletion.
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,12 @@ | ||
async fn obstest() -> Result<> { | ||
let obs_connect = || -> Result<(), MyError) { //~ ERROR mismatched closing delimiter | ||
async { | ||
} | ||
} | ||
|
||
if let Ok(version, scene_list) = obs_connect() { | ||
|
||
} else { | ||
|
||
} | ||
} //~ ERROR unexpected closing delimiter |
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,16 @@ | ||
error: unexpected closing delimiter: `}` | ||
--> $DIR/issue-68987-unmatch-issue-2.rs:12:1 | ||
| | ||
LL | } | ||
| ^ unexpected closing delimiter | ||
|
||
error: mismatched closing delimiter: `)` | ||
--> $DIR/issue-68987-unmatch-issue-2.rs:1:32 | ||
| | ||
LL | async fn obstest() -> Result<> { | ||
| ^ unclosed delimiter | ||
LL | let obs_connect = || -> Result<(), MyError) { | ||
| ^ mismatched closing delimiter | ||
|
||
error: aborting due to 2 previous errors | ||
|
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,7 @@ | ||
fn f(i: u32, j: u32) { | ||
let res = String::new(); | ||
let mut cnt = i; | ||
while cnt < j { | ||
write!&mut res, " "); //~ ERROR mismatched closing delimiter | ||
} | ||
} //~ ERROR unexpected closing delimiter |
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,21 @@ | ||
error: unexpected closing delimiter: `}` | ||
--> $DIR/issue-68987-unmatch-issue-3.rs:7:1 | ||
| | ||
LL | fn f(i: u32, j: u32) { | ||
| - this delimiter might not be properly closed... | ||
... | ||
LL | } | ||
| - ...as it matches this but it has different indentation | ||
LL | } | ||
| ^ unexpected closing delimiter | ||
|
||
error: mismatched closing delimiter: `)` | ||
--> $DIR/issue-68987-unmatch-issue-3.rs:4:19 | ||
| | ||
LL | while cnt < j { | ||
| ^ unclosed delimiter | ||
LL | write!&mut res, " "); | ||
| ^ mismatched closing delimiter | ||
|
||
error: aborting due to 2 previous errors | ||
|