Skip to content

Commit 8f87adf

Browse files
committed
---
yaml --- r: 223537 b: refs/heads/beta c: 65a456d h: refs/heads/master i: 223535: b4c500f v: v3
1 parent 3818ec5 commit 8f87adf

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 18e9007ac249c542aa3b73b5aa275e52825ca940
26+
refs/heads/beta: 65a456df430260cc4c0a8ef189b764c34153d435
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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/beta/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)