Readding lifetime parameters and removing allocation

This commit is contained in:
Thomas Garcia 2016-07-21 20:55:19 -07:00
parent 97d082c6cd
commit d1e2a935d2
4 changed files with 51 additions and 30 deletions

View file

@ -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 }
}