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:
commit
19958c2d09
3
src/test/rustdoc-ui/issue-79465.rs
Normal file
3
src/test/rustdoc-ui/issue-79465.rs
Normal file
@ -0,0 +1,3 @@
|
||||
pub fn f1<T>(x: T::A) {}
|
||||
//~^ ERROR
|
||||
//~^^ ERROR
|
15
src/test/rustdoc-ui/issue-79465.stderr
Normal file
15
src/test/rustdoc-ui/issue-79465.stderr
Normal 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`.
|
Loading…
Reference in New Issue
Block a user