Skip to content

Commit d5e7714

Browse files
committed
---
yaml --- r: 219807 b: refs/heads/snap-stage3 c: 65a456d h: refs/heads/master i: 219805: ff0c068 219803: e1f7646 219799: 8084d6f 219791: d0db3f5 219775: 72fb585 v: v3
1 parent 785d77b commit d5e7714

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
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3-
refs/heads/snap-stage3: 18e9007ac249c542aa3b73b5aa275e52825ca940
3+
refs/heads/snap-stage3: 65a456df430260cc4c0a8ef189b764c34153d435
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/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/snap-stage3/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)