]> git.proxmox.com Git - rustc.git/blame_incremental - src/test/run-pass/issues/issue-18539.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / issues / issue-18539.rs
... / ...
CommitLineData
1// run-pass
2// Test that coercing bare fn's that return a zero sized type to
3// a closure doesn't cause an LLVM ERROR
4
5// pretty-expanded FIXME #23616
6
7struct Foo;
8
9fn uint_to_foo(_: usize) -> Foo {
10 Foo
11}
12
13#[allow(unused_must_use)]
14fn main() {
15 (0..10).map(uint_to_foo);
16}