diff options
| author | varkor <github@varkor.com> | 2020-10-02 02:21:15 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2020-10-02 02:22:01 +0100 |
| commit | 1db05e032db798b3162926ee4b72072d3c4de56f (patch) | |
| tree | 9affc7d1b0c5c1ec3c2bb8677370c427c768e352 /src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.stderr | |
| parent | 0801263279bbd44b7dbe88d5039a6b810a037f3b (diff) | |
| download | rust-1db05e032db798b3162926ee4b72072d3c4de56f.tar.gz rust-1db05e032db798b3162926ee4b72072d3c4de56f.zip | |
Add various `min_const_generics` regression tests
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 + |
