Skip to content

Commit c1fb92b

Browse files
committed
Regression test for identity_conversion
1 parent 6104aef commit c1fb92b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ui/identity_conversion_fp.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// compile-pass
2+
3+
// Tracking issue: #3913
4+
5+
use std::fs;
6+
use std::path::Path;
7+
8+
fn main() -> Result<(), std::io::Error> {
9+
let path = Path::new(".");
10+
for _ in fs::read_dir(path)? {}
11+
12+
Ok(())
13+
}

0 commit comments

Comments
 (0)