Skip to content

Commit

Permalink
tests: add system tests for inverted span issue
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Aug 9, 2020
1 parent a178031 commit 48f6c32
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/source/issue_4374.rs
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;
}
});
}
8 changes: 8 additions & 0 deletions tests/target/issue_3934.rs
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()? {}
})
}
}
13 changes: 13 additions & 0 deletions tests/target/issue_4374.rs
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;
}
});
}

0 comments on commit 48f6c32

Please sign in to comment.