mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
also fix the Fixed code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user