]> git.lizzy.rs Git - rust.git/commitdiff
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)
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


Trivial merge