From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/const-generics/backcompat/unevaluated-consts.rs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/test/ui/const-generics/backcompat/unevaluated-consts.rs (limited to 'src/test/ui/const-generics/backcompat/unevaluated-consts.rs') diff --git a/src/test/ui/const-generics/backcompat/unevaluated-consts.rs b/src/test/ui/const-generics/backcompat/unevaluated-consts.rs deleted file mode 100644 index 3f90d22ae..000000000 --- a/src/test/ui/const-generics/backcompat/unevaluated-consts.rs +++ /dev/null @@ -1,18 +0,0 @@ -// check-pass - -// If we allow the parent generics here without using lazy normalization -// this results in a cycle error. -struct Foo(T, U); - -impl From<[u8; 1 + 1]> for Foo { - fn from(value: [u8; 1 + 1]) -> Foo { - todo!(); - } -} - -fn break_me() -where - [u8; 1 + 1]: From<[u8; 1 + 1]> -{} - -fn main() {} -- cgit v1.2.3