diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-03-21 19:23:29 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-03-21 19:23:29 -0400 |
| commit | 2e8a1abc2df44d8e71e52bf92b658438707564ea (patch) | |
| tree | 99612b0a300255a276bb4d067a4d9342aff482a3 /src | |
| parent | 48c4e352d38479a5adcd664bef3a208640ba5cbc (diff) | |
| download | rust-2e8a1abc2df44d8e71e52bf92b658438707564ea.tar.gz rust-2e8a1abc2df44d8e71e52bf92b658438707564ea.zip | |
also fix the Fixed code
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/diagnostics.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ 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 |
