about summary refs log tree commit diff
path: root/src/test/ui/consts
diff options
context:
space:
mode:
authorEsteban Kuber <esteban@kuber.com.ar>2022-03-26 23:14:47 +0000
committerEsteban Kuber <esteban@kuber.com.ar>2022-04-04 21:06:35 +0000
commite2bba0708a1e4b0c21f94de56c2bd5d66d3b825f (patch)
treef69b605da80489e297384a9fdde5cc99396f4e8c /src/test/ui/consts
parent883b93c7b7eb02ec85f4b8f9fb129efc403d4fb2 (diff)
downloadrust-e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f.tar.gz
rust-e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f.zip
Fix list length
Diffstat (limited to 'src/test/ui/consts')
-rw-r--r--src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr4
-rw-r--r--src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr4
-rw-r--r--src/test/ui/consts/too_generic_eval_ice.stderr4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr b/src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr
index aee7192b6ed..d2d68506d4e 100644
--- a/src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr
+++ b/src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr
@@ -16,6 +16,10 @@ LL |     = [0; (i8::MAX + 1u8) as usize];
              <&i8 as Add<&i8>>
              <i8 as Add<&i8>>
              <i8 as Add>
+             <&'a f32 as Add<f32>>
+             <&'a f64 as Add<f64>>
+             <&'a i128 as Add<i128>>
+             <&'a i16 as Add<i16>>
            and 48 others
 
 error: aborting due to 2 previous errors
diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr b/src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr
index 059447f7cac..818e3bc15b1 100644
--- a/src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr
+++ b/src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr
@@ -16,6 +16,10 @@ LL |     : [u32; (i8::MAX as i8 + 1u8) as usize]
              <&i8 as Add<&i8>>
              <i8 as Add<&i8>>
              <i8 as Add>
+             <&'a f32 as Add<f32>>
+             <&'a f64 as Add<f64>>
+             <&'a i128 as Add<i128>>
+             <&'a i16 as Add<i16>>
            and 48 others
 
 error[E0604]: only `u8` can be cast as `char`, not `i8`
diff --git a/src/test/ui/consts/too_generic_eval_ice.stderr b/src/test/ui/consts/too_generic_eval_ice.stderr
index 677fa7d21ae..45459b931ca 100644
--- a/src/test/ui/consts/too_generic_eval_ice.stderr
+++ b/src/test/ui/consts/too_generic_eval_ice.stderr
@@ -26,6 +26,10 @@ LL |         [5; Self::HOST_SIZE] == [6; 0]
              <&[T] as PartialEq<Vec<U, A>>>
              <&mut [B] as PartialEq<[A; N]>>
              <&mut [T] as PartialEq<Vec<U, A>>>
+             <[A; N] as PartialEq<&[B]>>
+             <[A; N] as PartialEq<&mut [B]>>
+             <[A; N] as PartialEq<[B; N]>>
+             <[A; N] as PartialEq<[B]>>
            and 3 others
 
 error: aborting due to 3 previous errors