]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/const-generics/nested-type.min.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / const-generics / nested-type.min.stderr
index 276ebf31ff8b88012faa61c24f8554150c0efbce..cff02b0d445c81e8d351fec56c4bc1e015d86923 100644 (file)
@@ -1,4 +1,14 @@
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; {
+           struct Foo<const N: usize>;
+       
+           impl<const N: usize> Foo<N> {
+               fn value() -> usize {
+                   N
+               }
+           }
+       
+           Foo::<17>::value()
+       }]` is forbidden as the type of a const generic parameter
   --> $DIR/nested-type.rs:6:21
    |
 LL |   struct Foo<const N: [u8; {