diff options
Diffstat (limited to 'src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.stderr')
| -rw-r--r-- | src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.stderr b/src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.stderr new file mode 100644 index 00000000000..cc32d8a67fe --- /dev/null +++ b/src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.stderr @@ -0,0 +1,11 @@ +error: `&'static [u32]` is forbidden as the type of a const generic parameter + --> $DIR/static-reference-array-const-param.rs:3:15 + | +LL | fn a<const X: &'static [u32]>() {} + | ^^^^^^^^^^^^^^ + | + = note: the only supported types are integers, `bool` and `char` + = note: more complex types are supported with `#[feature(const_generics)]` + +error: aborting due to previous error + |
