diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-27 21:46:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-27 21:46:34 +0100 |
| commit | 19958c2d096c272f543a140aeadf37f6b63329ee (patch) | |
| tree | 4b1d97a2f8f7dd9e2849ca6f309b3e1e6777b4f7 /src/test/rustdoc-ui | |
| parent | 9373d8b6ae9d2664bc5448f335306968af479dbc (diff) | |
| parent | 915740c392e0147a5afa6f6fd0e2c303c066ac34 (diff) | |
| download | rust-19958c2d096c272f543a140aeadf37f6b63329ee.tar.gz rust-19958c2d096c272f543a140aeadf37f6b63329ee.zip | |
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````
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/issue-79465.rs | 3 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/issue-79465.stderr | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/issue-79465.rs b/src/test/rustdoc-ui/issue-79465.rs new file mode 100644 index 00000000000..f1a77982fb5 --- /dev/null +++ b/src/test/rustdoc-ui/issue-79465.rs @@ -0,0 +1,3 @@ +pub fn f1<T>(x: T::A) {} +//~^ ERROR +//~^^ ERROR diff --git a/src/test/rustdoc-ui/issue-79465.stderr b/src/test/rustdoc-ui/issue-79465.stderr new file mode 100644 index 00000000000..489cc14420a --- /dev/null +++ b/src/test/rustdoc-ui/issue-79465.stderr @@ -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`. |
