about summary refs log tree commit diff
path: root/src/test/ui/const-generics/derive-debug-array-wrapper.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2019-07-05 23:59:59 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2019-07-07 11:31:38 -0700
commitd6a9793722c1ab6066f4f71224aac078b54f03c0 (patch)
tree5b5b0c2a6ca83be7756b4066ad26df4cc30a0ca3 /src/test/ui/const-generics/derive-debug-array-wrapper.rs
parent481068a707679257e2a738b40987246e0420e787 (diff)
downloadrust-d6a9793722c1ab6066f4f71224aac078b54f03c0.tar.gz
rust-d6a9793722c1ab6066f4f71224aac078b54f03c0.zip
Use const generics for array impls, restricted to 0..=32
- uses a never-stable core::array::LengthAtMost32 to bound the impls
- includes a custom error message to avoid mentioning LengthAtMost32 too often
- doesn't use macros for the slice implementations to avoid #62433
Diffstat (limited to 'src/test/ui/const-generics/derive-debug-array-wrapper.rs')
-rw-r--r--src/test/ui/const-generics/derive-debug-array-wrapper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-generics/derive-debug-array-wrapper.rs b/src/test/ui/const-generics/derive-debug-array-wrapper.rs
index a29cb90ebb7..eee634c1564 100644
--- a/src/test/ui/const-generics/derive-debug-array-wrapper.rs
+++ b/src/test/ui/const-generics/derive-debug-array-wrapper.rs
@@ -3,7 +3,7 @@
 
 #[derive(Debug)]
 struct X<const N: usize> {
-    a: [u32; N], //~ ERROR `[u32; _]` doesn't implement `std::fmt::Debug`
+    a: [u32; N], //~ ERROR arrays only have std trait implementations for lengths 0..=32
 }
 
 fn main() {}