about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-03-21 19:23:29 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-03-21 19:23:29 -0400
commit2e8a1abc2df44d8e71e52bf92b658438707564ea (patch)
tree99612b0a300255a276bb4d067a4d9342aff482a3 /src
parent48c4e352d38479a5adcd664bef3a208640ba5cbc (diff)
downloadrust-2e8a1abc2df44d8e71e52bf92b658438707564ea.tar.gz
rust-2e8a1abc2df44d8e71e52bf92b658438707564ea.zip
also fix the Fixed code
Diffstat (limited to 'src')
-rw-r--r--src/librustc/diagnostics.rs4
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