diff options
Diffstat (limited to 'tests/ui/type-alias/issue-62364-self-ty-arg.rs')
-rw-r--r-- | tests/ui/type-alias/issue-62364-self-ty-arg.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/type-alias/issue-62364-self-ty-arg.rs b/tests/ui/type-alias/issue-62364-self-ty-arg.rs new file mode 100644 index 000000000..bebb4a902 --- /dev/null +++ b/tests/ui/type-alias/issue-62364-self-ty-arg.rs @@ -0,0 +1,8 @@ +struct Struct<P1> { + field: P1, +} + +type Alias<'a> = Struct<&'a Self>; +//~^ ERROR cannot find type `Self` in this scope [E0411] + +fn main() {} |