Rollup merge of #94399 - GuillaumeGomez:regression-test-79465, r=matthiaskrgr

Add test for #79465 to prevent regression

Fixes #79465.

Like this we will be able to close the issue.

r? ````@matthiaskrgr````
This commit is contained in:
Matthias Krüger 2022-02-27 21:46:34 +01:00 committed by GitHub
commit 19958c2d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,3 @@
pub fn f1<T>(x: T::A) {}
//~^ ERROR
//~^^ ERROR

View File

@ -0,0 +1,15 @@
error[E0220]: associated type `A` not found for `T`
--> $DIR/issue-79465.rs:1:20
|
LL | pub fn f1<T>(x: T::A) {}
| ^ associated type `A` not found
error[E0220]: associated type `A` not found for `T`
--> $DIR/issue-79465.rs:1:20
|
LL | pub fn f1<T>(x: T::A) {}
| ^ associated type `A` not found
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0220`.