]> git.lizzy.rs Git - rust.git/commit
do not ICE when return type includes unconstrained anon region
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 22 Jan 2018 22:36:43 +0000 (17:36 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Mon, 22 Jan 2018 22:36:43 +0000 (17:36 -0500)
commit215d66b998aaa844e2d43ce7cd459c7fa69e0d9f
treec4cda5c43db3c7dc9f54f346afe3c6557bf5bd39
parentfdc18b3067b5bad257ccbe7400e3c4fb617e9e18
do not ICE when return type includes unconstrained anon region

It turns out that this *can* happen after all, if the region is only
used in projections from the input types.
src/librustc_typeck/astconv.rs
src/test/ui/issue-47511.rs [new file with mode: 0644]
src/test/ui/issue-47511.stderr [new file with mode: 0644]