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 add test for #122301 to cover behavior that's on stable 2024-03-17 14:58:22 +01:00
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 Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00
short-circuit-let.rs
short-circuit.rs
single_variant_match_ice.rs
try.rs
try.stderr Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00