File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
src/test/ui/generic-associated-types Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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`.
You can’t perform that action at this time.
0 commit comments