Transition to the new object lifetime defaults, replacing the old
defaults completely.
This commit is contained in:
parent
5708b1a18a
commit
de6b3c282e
28 changed files with 97 additions and 240 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue