Add test for issue-67424
This commit is contained in:
parent
6ec3a63bb2
commit
1f2fa939a5
2 changed files with 33 additions and 0 deletions
13
src/test/ui/generic-associated-types/issue-67424.rs
Normal file
13
src/test/ui/generic-associated-types/issue-67424.rs
Normal 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() {}
|
20
src/test/ui/generic-associated-types/issue-67424.stderr
Normal file
20
src/test/ui/generic-associated-types/issue-67424.stderr
Normal 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`.
|
Loading…
Add table
Add a link
Reference in a new issue