Skip to content

Commit fd00f4b

Browse files
committed
---
yaml --- r: 226117 b: refs/heads/stable c: db75b07 h: refs/heads/master i: 226115: a0e1c85 v: v3
1 parent acba8fe commit fd00f4b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 9cdaa1fc25f8228b2b62e7f755f98f5344a6b4d4
32+
refs/heads/stable: db75b07d594d381116739e9045421523ae26dca3
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/test/compile-fail/object-lifetime-default-elision.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ fn load0<'a>(ss: &'a Box<SomeTrait>) -> Box<SomeTrait> {
4141

4242
deref(ss)
4343
//~^ ERROR cannot infer
44-
//~| WARNING E0398
4544
}
4645

4746
fn load1(ss: &SomeTrait) -> &SomeTrait {

branches/stable/src/test/compile-fail/object-lifetime-default-mybox.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ fn deref<T>(ss: &T) -> T {
2828

2929
fn load0(ss: &MyBox<SomeTrait>) -> MyBox<SomeTrait> {
3030
deref(ss) //~ ERROR cannot infer
31-
//~^ WARNING E0398
3231
}
3332

3433
fn load1<'a,'b>(a: &'a MyBox<SomeTrait>,
@@ -40,5 +39,9 @@ fn load1<'a,'b>(a: &'a MyBox<SomeTrait>,
4039
//~| ERROR mismatched types
4140
}
4241

42+
fn load2<'a>(ss: &MyBox<SomeTrait+'a>) -> MyBox<SomeTrait+'a> {
43+
load0(ss) //~ WARNING E0398
44+
}
45+
4346
fn main() {
4447
}

0 commit comments

Comments
 (0)