]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #62849 - davidtwco:prohibit-inheriting-lifetimes, r=nikomatsakis
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 14 Aug 2019 02:18:36 +0000 (04:18 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2019 02:18:36 +0000 (04:18 +0200)
commit3f181120795de77b3d9489f37e805082daa571e7
treecc5ec923e0aac2187c1147e3c5b29fe956f4fb2f
parentdda33cad3841a49e066f8eac56f89db8a0ce4e5c
parent861d1bb365419c4a9ae8eb14257323e9877e5d42
Rollup merge of #62849 - davidtwco:prohibit-inheriting-lifetimes, r=nikomatsakis

typeck: Prohibit RPIT types that inherit lifetimes

Part of #61949.

This PR prohibits return position `impl Trait` types that "inherit
lifetimes" from the parent scope. The intent is to forbid cases that are
challenging until they can be addressed properly.

cc @nikomatsakis