tests: add system tests for inverted span issue

This commit is contained in:
Caleb Cartwright 2020-08-09 14:00:26 -05:00 committed by Caleb Cartwright
parent a17803127f
commit 48f6c32ec1
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,13 @@
fn a<F>(_f: F) -> ()
where
F: FnOnce() -> (),
{
}
fn main() {
a(|| {
#[allow(irrefutable_let_patterns)]
while let _ = 0 {
break;
}
});
}

View File

@ -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()? {}
})
}
}

View File

@ -0,0 +1,13 @@
fn a<F>(_f: F) -> ()
where
F: FnOnce() -> (),
{
}
fn main() {
a(|| {
#[allow(irrefutable_let_patterns)]
while let _ = 0 {
break;
}
});
}