Add test for #79465 to prevent regression
This commit is contained in:
parent
b8967b0d52
commit
915740c392
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…
x
Reference in New Issue
Block a user