Skip to content

Commit c68e652

Browse files
author
Ariel Ben-Yehuda
committed
test fixes
1 parent 65a3245 commit c68e652

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/compile-fail/assoc-inherent.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
struct Foo;
1414

1515
impl Foo {
16-
type Bar = isize; //~ERROR associated items are not allowed in inherent impls
16+
type Bar = isize; //~ERROR associated types are not allowed in inherent impls
1717
}
1818

1919
fn main() {}

src/test/compile-fail/issue-22673.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
trait Expr : PartialEq<Self::Item> {
1212
//~^ ERROR: unsupported cyclic reference between types/traits detected
13-
type Item = Expr;
13+
type Item;
1414
}
1515

1616
fn main() {}

0 commit comments

Comments
 (0)