rust/tests/ui/const-generics/adt_const_params
Esteban Küber 6c31f6ce12 Provide structured suggestion for #![feature(foo)]
```
error: `S2<'_>` is forbidden as the type of a const generic parameter
  --> $DIR/lifetime-in-const-param.rs:5:23
   |
LL | struct S<'a, const N: S2>(&'a ());
   |                       ^^
   |
   = note: the only supported types are integers, `bool` and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |
```

Fix #55941.
2024-03-18 16:08:58 +00:00
..
const_param_ty_bad_empty_array.rs Add a test for [NotParam; 0]: ConstParamTy (not holding) 2023-04-27 15:59:07 +00:00
const_param_ty_bad_empty_array.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
const_param_ty_bad.rs adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
const_param_ty_bad.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
const_param_ty_generic_bounds_do_not_hold.rs Add ConstParamTy tests 2023-04-27 15:59:07 +00:00
const_param_ty_generic_bounds_do_not_hold.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
const_param_ty_good.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_param_ty_impl_bad_field.rs Add derive for core::marker::ConstParamTy 2023-05-16 20:09:25 +02:00
const_param_ty_impl_bad_field.stderr Add derive for core::marker::ConstParamTy 2023-05-16 20:09:25 +02:00
const_param_ty_impl_no_structural_eq.rs remove StructuralEq trait 2024-01-24 07:56:23 +01:00
const_param_ty_impl_no_structural_eq.stderr remove StructuralEq trait 2024-01-24 07:56:23 +01:00
const_param_ty_impl_union.rs remove StructuralEq trait 2024-01-24 07:56:23 +01:00
const_param_ty_impl_union.stderr remove StructuralEq trait 2024-01-24 07:56:23 +01:00
suggest_feature_only_when_possible.rs Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00
suggest_feature_only_when_possible.stderr Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00