Skip to content

Commit a3805db

Browse files
committed
Add check-pass test for issue 48109
1 parent 0353c8a commit a3805db

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/ui/issues/issue-48109.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// check-pass
2+
fn useful(i: usize) -> usize {
3+
i
4+
}
5+
6+
fn useful2(i: usize) -> usize {
7+
i
8+
}
9+
10+
fn main() {
11+
for f in &[useful, useful2, |x| x] {
12+
println!("{}", f(6));
13+
}
14+
}

0 commit comments

Comments
 (0)