1
Fork 0

Transition to the new object lifetime defaults, replacing the old

defaults completely.
This commit is contained in:
Niko Matsakis 2015-07-14 19:36:15 -04:00
parent 5708b1a18a
commit de6b3c282e
28 changed files with 97 additions and 240 deletions

View file

@ -36,9 +36,7 @@ fn b<'a>(t: &'a MyBox<Test>, mut ss: SomeStruct<'a>) {
ss.u = t;
}
fn c<'a>(t: &'a MyBox<Test+'a>, mut ss: SomeStruct<'a>) {
ss.t = t;
}
// see also compile-fail/object-lifetime-default-from-rptr-box-error.rs
fn d<'a>(t: &'a MyBox<Test+'a>, mut ss: SomeStruct<'a>) {
ss.u = t;