Skip to content

Commit

Permalink
also fix the Fixed code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Mar 21, 2018
1 parent 48c4e35 commit 2e8a1ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2109,11 +2109,13 @@ type. For example, changing the return type to `impl Trait<'y> + 'x`
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
Expand Down

0 comments on commit 2e8a1ab

Please sign in to comment.