Readding lifetime parameters and removing allocation
This commit is contained in:
parent
97d082c6cd
commit
d1e2a935d2
4 changed files with 51 additions and 30 deletions
|
@ -296,5 +296,5 @@ fn test_extend_specialization() {
|
|||
|
||||
#[allow(dead_code)]
|
||||
fn assert_covariance() {
|
||||
fn drain<'new>(d: Drain<&'static str>) -> Drain<&'new str> { d }
|
||||
fn drain<'new>(d: Drain<'static, &'static str>) -> Drain<'new, &'new str> { d }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue