Skip to content

Commit 21cf611

Browse files
committed
---
yaml --- r: 172407 b: refs/heads/master c: 4748721 h: refs/heads/master i: 172405: 932b9d5 172403: 6d24b99 172399: c2c7633 v: v3
1 parent dc2651d commit 21cf611

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e73fbc69cd85ccd7e444929b7b7aa0ae74ee6198
2+
refs/heads/master: 474872160a49e4048e5017f0bbb8d93d19267b9a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 705b92bdfe33d0d6febdf945340262514e1b3b5c

trunk/src/test/compile-fail/issue-15783.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub fn foo(params: Option<&[&str]>) -> usize {
1414

1515
fn main() {
1616
let name = "Foo";
17-
let msg = foo(Some(&[name.as_slice()]));
17+
let x = Some(&[name.as_slice()]);
18+
let msg = foo(x);
1819
//~^ ERROR mismatched types: expected `core::option::Option<&[&str]>`
1920
assert_eq!(msg, 3);
2021
}

trunk/src/test/compile-fail/regions-early-bound-error-method.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ impl<'a> GetRef<'a> for Box<'a> {
2828
impl<'a> Box<'a> {
2929
fn or<'b,G:GetRef<'b>>(&self, g2: G) -> &'a isize {
3030
g2.get() //~ ERROR cannot infer an appropriate lifetime for automatic coercion due to
31+
//~^ ERROR mismatched types: expected `&'a isize`, found `&'b isize` (lifetime mismatch)
32+
3133
}
3234
}
3335

trunk/src/test/compile-fail/regions-early-bound-error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ impl<'a,T:Clone> GetRef<'a,T> for Box<'a,T> {
2727

2828
fn get<'a,'b,G:GetRef<'a, isize>>(g1: G, b: &'b isize) -> &'b isize {
2929
g1.get() //~ ERROR cannot infer an appropriate lifetime for automatic coercion due to
30+
//~^ ERROR mismatched types: expected `&'b isize`, found `&'a isize` (lifetime mismatch)
3031
}
3132

3233
fn main() {

0 commit comments

Comments
 (0)