Skip to content

Commit adbc226

Browse files
committed
---
yaml --- r: 172791 b: refs/heads/try c: 4748721 h: refs/heads/master i: 172789: 364231c 172787: d4171da 172783: 38205fc v: v3
1 parent 2606851 commit adbc226

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 170c4399e614fe599c3d41306b3429ca8b3b68c6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: e73fbc69cd85ccd7e444929b7b7aa0ae74ee6198
5+
refs/heads/try: 474872160a49e4048e5017f0bbb8d93d19267b9a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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
}

branches/try/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

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