From: Niko Matsakis Date: Wed, 21 Mar 2018 23:23:29 +0000 (-0400) Subject: also fix the Fixed code X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=2e8a1abc2df44d8e71e52bf92b658438707564ea;p=rust.git also fix the Fixed code --- diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 10156d22501..2fd875c3447 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -2109,11 +2109,13 @@ fn foo<'x, 'y>(x: Cell<&'x u32>) -> impl Trait<'y> would work: ``` +#![feature(conservative_impl_trait)] + use std::cell::Cell; trait Trait<'a> { } -impl Trait<'b> for Cell<&'a u32> { } +impl<'a,'b> Trait<'b> for Cell<&'a u32> { } fn foo<'x, 'y>(x: Cell<&'x u32>) -> impl Trait<'y> + 'x where 'x: 'y