-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add system tests for inverted span issue
- Loading branch information
1 parent
a178031
commit 48f6c32
Showing
3 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fn a<F>(_f: F) -> () | ||
where | ||
F: FnOnce() -> (), | ||
{ | ||
} | ||
fn main() { | ||
a(|| { | ||
#[allow(irrefutable_let_patterns)] | ||
while let _ = 0 { | ||
break; | ||
} | ||
}); | ||
} |
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,8 @@ | ||
mod repro { | ||
pub fn push() -> Result<(), ()> { | ||
self.api.map_api_result(|api| { | ||
#[allow(deprecated)] | ||
match api.apply_extrinsic_before_version_4_with_context()? {} | ||
}) | ||
} | ||
} |
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 a<F>(_f: F) -> () | ||
where | ||
F: FnOnce() -> (), | ||
{ | ||
} | ||
fn main() { | ||
a(|| { | ||
#[allow(irrefutable_let_patterns)] | ||
while let _ = 0 { | ||
break; | ||
} | ||
}); | ||
} |