Skip to content

Commit 2e8a1ab

Browse files
committed
also fix the Fixed code
1 parent 48c4e35 commit 2e8a1ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/diagnostics.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2109,11 +2109,13 @@ type. For example, changing the return type to `impl Trait<'y> + 'x`
21092109
would work:
21102110
21112111
```
2112+
#![feature(conservative_impl_trait)]
2113+
21122114
use std::cell::Cell;
21132115
21142116
trait Trait<'a> { }
21152117
2116-
impl Trait<'b> for Cell<&'a u32> { }
2118+
impl<'a,'b> Trait<'b> for Cell<&'a u32> { }
21172119
21182120
fn foo<'x, 'y>(x: Cell<&'x u32>) -> impl Trait<'y> + 'x
21192121
where 'x: 'y

0 commit comments

Comments
 (0)