Skip to content

Commit 8622ee2

Browse files
authored
Rollup merge of rust-lang#94399 - GuillaumeGomez:regression-test-79465, r=matthiaskrgr
Add test for rust-lang#79465 to prevent regression Fixes rust-lang#79465. Like this we will be able to close the issue. r? ``@matthiaskrgr``
2 parents a87dc77 + 915740c commit 8622ee2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/test/rustdoc-ui/issue-79465.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn f1<T>(x: T::A) {}
2+
//~^ ERROR
3+
//~^^ ERROR
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error[E0220]: associated type `A` not found for `T`
2+
--> $DIR/issue-79465.rs:1:20
3+
|
4+
LL | pub fn f1<T>(x: T::A) {}
5+
| ^ associated type `A` not found
6+
7+
error[E0220]: associated type `A` not found for `T`
8+
--> $DIR/issue-79465.rs:1:20
9+
|
10+
LL | pub fn f1<T>(x: T::A) {}
11+
| ^ associated type `A` not found
12+
13+
error: aborting due to 2 previous errors
14+
15+
For more information about this error, try `rustc --explain E0220`.

0 commit comments

Comments
 (0)