-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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`. |