Skip to content

Commit d1b65fb

Browse files
committed
Add issue reference to E0202 message
1 parent 1409363 commit d1b65fb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ fn report_assoc_ty_on_inherent_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, span:
11071107
tcx.sess,
11081108
span,
11091109
E0202,
1110-
"associated types are not allowed in inherent impls"
1110+
"associated types are not yet supported in inherent impls (see #8995)"
11111111
);
11121112
}
11131113

src/test/ui/assoc-inherent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Test associated types are forbidden in inherent impls.
1+
// Test associated types are, until #8995 is implemented, forbidden in inherent impls.
22

33
struct Foo;
44

55
impl Foo {
6-
type Bar = isize; //~ERROR associated types are not allowed in inherent impls
6+
type Bar = isize; //~ERROR associated types are not yet supported in inherent impls (see #8995)
77
}
88

99
fn main() {}

src/test/ui/assoc-inherent.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0202]: associated types are not allowed in inherent impls
1+
error[E0202]: associated types are not yet supported in inherent impls (see #8995)
22
--> $DIR/assoc-inherent.rs:6:5
33
|
4-
LL | type Bar = isize; //~ERROR associated types are not allowed in inherent impls
4+
LL | type Bar = isize; //~ERROR associated types are not yet supported in inherent impls (see #8995)
55
| ^^^^^^^^^^^^^^^^^
66

77
error: aborting due to previous error

0 commit comments

Comments
 (0)