improve tests as suggested by review comments

This commit is contained in:
Ariel Ben-Yehuda
2018-12-18 00:33:21 +02:00
parent baf9f0173c
commit 1fd23f56f3
4 changed files with 92 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
// compile-pass
// Regression test related to #56288. Check that a supertrait projection (of
// `Output`) that references `Self` can be ok if it is referencing a projection (of
// `Self::Target`, in this case). Note that we still require the user to manually
// specify both `Target` and `Output` for now.
trait Base {
type Output;
}