rust/tests/ui/consts/control-flow
Matthias Krüger 980248605a
Rollup merge of #122158 - estebank:feature-sugg, r=WaffleLapkin
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 22:24:38 +01:00
..
assert.rs
assert.stderr
basics.rs
dead_branches_dont_eval.rs
drop-fail.precise.stderr
drop-fail.rs
drop-fail.stock.stderr
drop-pass.rs
drop-precise.rs
exhaustive-c-like-enum-match.rs
feature-gate-const-if-match.rs
interior-mutability.rs
interior-mutability.stderr
issue-46843.rs
issue-46843.stderr
issue-50577.rs
issue-50577.stderr
loop.rs
loop.stderr
short-circuit-let.rs
short-circuit.rs
single_variant_match_ice.rs
try.rs
try.stderr