1
Fork 0

Add test for issue-67424

This commit is contained in:
Yuki Okushi 2019-12-23 07:37:16 +09:00
parent 6ec3a63bb2
commit 1f2fa939a5
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,13 @@
// Fixed by #67160
trait Trait1 {
type A;
}
trait Trait2 {
type Type1<B>: Trait1<A=B>;
//~^ ERROR: generic associated types are unstable
//~| ERROR: type-generic associated types are not yet implemented
}
fn main() {}

View file

@ -0,0 +1,20 @@
error[E0658]: generic associated types are unstable
--> $DIR/issue-67424.rs:8:5
|
LL | type Type1<B>: Trait1<A=B>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/44265
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
error: type-generic associated types are not yet implemented
--> $DIR/issue-67424.rs:8:5
|
LL | type Type1<B>: Trait1<A=B>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/44265
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.