mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
tests: add system tests for inverted span issue
This commit is contained in:
parent
a17803127f
commit
48f6c32ec1
13
tests/source/issue_4374.rs
Normal file
13
tests/source/issue_4374.rs
Normal file
@ -0,0 +1,13 @@
|
||||
fn a<F>(_f: F) -> ()
|
||||
where
|
||||
F: FnOnce() -> (),
|
||||
{
|
||||
}
|
||||
fn main() {
|
||||
a(|| {
|
||||
#[allow(irrefutable_let_patterns)]
|
||||
while let _ = 0 {
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
8
tests/target/issue_3934.rs
Normal file
8
tests/target/issue_3934.rs
Normal 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()? {}
|
||||
})
|
||||
}
|
||||
}
|
13
tests/target/issue_4374.rs
Normal file
13
tests/target/issue_4374.rs
Normal file
@ -0,0 +1,13 @@
|
||||
fn a<F>(_f: F) -> ()
|
||||
where
|
||||
F: FnOnce() -> (),
|
||||
{
|
||||
}
|
||||
fn main() {
|
||||
a(|| {
|
||||
#[allow(irrefutable_let_patterns)]
|
||||
while let _ = 0 {
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user