diff options
Diffstat (limited to 'src/test/ui/self/self-in-typedefs.rs')
-rw-r--r-- | src/test/ui/self/self-in-typedefs.rs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/test/ui/self/self-in-typedefs.rs b/src/test/ui/self/self-in-typedefs.rs deleted file mode 100644 index 81e557d53..000000000 --- a/src/test/ui/self/self-in-typedefs.rs +++ /dev/null @@ -1,38 +0,0 @@ -// build-pass (FIXME(62277): could be check-pass?) -#![allow(dead_code)] - -use std::mem::ManuallyDrop; - -enum A<'a, T: 'a> -where - Self: Send, T: PartialEq<Self> -{ - Foo(&'a Self), - Bar(T), -} - -struct B<'a, T: 'a> -where - Self: Send, T: PartialEq<Self> -{ - foo: &'a Self, - bar: T, -} - -union C<'a, T: 'a> -where - Self: Send, T: PartialEq<Self> -{ - foo: &'a Self, - bar: ManuallyDrop<T>, -} - -union D<'a, T: 'a> -where - Self: Send, T: PartialEq<Self> + Copy -{ - foo: &'a Self, - bar: T, -} - -fn main() {} |