Skip to content

Commit 288eaa9

Browse files
committed
---
yaml --- r: 170364 b: refs/heads/try c: 964a5fa h: refs/heads/master v: v3
1 parent f91ca6b commit 288eaa9

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
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: 73a25f55ad748b4d3516417c711b99ce446591af
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: b7c6e317b0d45f2129885d9148180be93ed0b025
5+
refs/heads/try: 964a5fabb7e32ac2b53678497a359e6eba2d5261
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-15965.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ fn main() {
1212
return
1313
{ return () }
1414
//~^ ERROR the type of this value must be known in this context
15-
//~| ERROR this function takes 1 parameter
16-
//~| ERROR mismatched types
1715
()
1816
;
1917
}

branches/try/src/test/compile-fail/issue-18345.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ fn mapping<'f, R, T, U>(f: |T|: 'f -> U) -> &'f Transducer<'f, R, T, U> {
1515
|step| |r, x|
1616
step(r, f(x))
1717
//~^ ERROR the type of this value must be known in this context
18-
//~| ERROR this function takes 1 parameter but 2 parameters were supplied
1918
}
2019

2120
fn main() {}

branches/try/src/test/compile-fail/issue-18532.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@
1717
fn main() {
1818
(return)((),());
1919
//~^ ERROR the type of this value must be known
20-
//~| ERROR this function takes 1 parameter
2120
}

branches/try/src/test/compile-fail/issue-18611.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010

1111
#![feature(associated_types)]
1212

13-
fn add_state(op:
14-
<int as HasState>::State
15-
//~^ ERROR it is currently unsupported to access associated types except through a type parameter
16-
) {}
13+
fn add_state(op: <int as HasState>::State) {
14+
//~^ ERROR the trait `HasState` is not implemented for the type `int`
15+
}
1716

1817
trait HasState {
1918
type State;

branches/try/src/test/compile-fail/issue-19081.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
#![feature(associated_types)]
1212

13-
pub trait Hasher{
13+
pub trait Hasher {
1414
type State;
1515

1616
fn hash<T: Hash<
1717
<Self as Hasher>::State //~ ERROR no suitable bound on `Self`
1818
>>(&self, value: &T) -> u64;
1919
}
2020

21-
trait Hash<S> {
21+
pub trait Hash<S> {
2222
fn hash(&self, state: &mut S);
2323
}
2424

branches/try/src/test/compile-fail/unsized4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// Test that bounds are sized-compatible.
1212

1313
trait T {}
14+
1415
fn f<Sized? Y: T>() {
1516
//~^ERROR incompatible bounds on type parameter `Y`, bound `T` does not allow unsized type
1617
}

0 commit comments

Comments
 (0)