diff options
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-adt_const_params.rs')
-rw-r--r-- | tests/ui/feature-gates/feature-gate-adt_const_params.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-adt_const_params.rs b/tests/ui/feature-gates/feature-gate-adt_const_params.rs new file mode 100644 index 000000000..8a3bcf259 --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-adt_const_params.rs @@ -0,0 +1,2 @@ +struct Foo<const NAME: &'static str>; //~ ERROR `&'static str` is forbidden +fn main() {} |