diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-28181.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-28181.rs b/src/test/ui/issues/issue-28181.rs new file mode 100644 index 000000000..c46e131c6 --- /dev/null +++ b/src/test/ui/issues/issue-28181.rs @@ -0,0 +1,6 @@ +// run-pass +fn bar<F>(f: F) -> usize where F: Fn([usize; 1]) -> usize { f([2]) } + +fn main() { + bar(|u| { u[0] }); +} |