Skip to content

Commit 1f2fa93

Browse files
committed
Add test for issue-67424
1 parent 6ec3a63 commit 1f2fa93

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Fixed by #67160
2+
3+
trait Trait1 {
4+
type A;
5+
}
6+
7+
trait Trait2 {
8+
type Type1<B>: Trait1<A=B>;
9+
//~^ ERROR: generic associated types are unstable
10+
//~| ERROR: type-generic associated types are not yet implemented
11+
}
12+
13+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error[E0658]: generic associated types are unstable
2+
--> $DIR/issue-67424.rs:8:5
3+
|
4+
LL | type Type1<B>: Trait1<A=B>;
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/44265
8+
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
9+
10+
error: type-generic associated types are not yet implemented
11+
--> $DIR/issue-67424.rs:8:5
12+
|
13+
LL | type Type1<B>: Trait1<A=B>;
14+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
|
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/44265
17+
18+
error: aborting due to 2 previous errors
19+
20+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)