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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assert.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
basics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-fail.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-fail.stock.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-precise.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
exhaustive-c-like-enum-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-gate-const-if-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
interior-mutability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
interior-mutability.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-46843.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-46843.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-50577.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-50577.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
loop.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
loop.stderr Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00
short-circuit-let.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
short-circuit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
single_variant_match_ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
try.stderr Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00