diff options
Diffstat (limited to 'src/test/ui/associated-types/hr-associated-type-projection-1.rs')
-rw-r--r-- | src/test/ui/associated-types/hr-associated-type-projection-1.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/associated-types/hr-associated-type-projection-1.rs b/src/test/ui/associated-types/hr-associated-type-projection-1.rs deleted file mode 100644 index 951dd9e97..000000000 --- a/src/test/ui/associated-types/hr-associated-type-projection-1.rs +++ /dev/null @@ -1,20 +0,0 @@ -trait UnsafeCopy<'a, T: Copy> -where - for<'b> <Self as UnsafeCopy<'b, T>>::Item: std::ops::Deref<Target = T>, -{ - type Item; - - fn bug(item: &Self::Item) -> () { - let x: T = **item; - &x as *const _; - } -} - -impl<T: Copy + std::ops::Deref> UnsafeCopy<'_, T> for T { - //~^ type mismatch resolving `<T as Deref>::Target == T` - type Item = T; -} - -pub fn main() { - <&'static str>::bug(&""); -} |