rust/compiler/rustc_trait_selection/src
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
..
solve Rollup merge of #122238 - fee1-dead-contrib:builtin-impl-next-solver-dox, r=lcnr 2024-03-14 15:44:32 +01:00
traits Provide structured suggestion for #![feature(foo)] 2024-03-18 16:08:58 +00:00
errors.rs Rename AddToDiagnostic as Subdiagnostic. 2024-03-11 10:04:49 +11:00
infer.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00
lib.rs Convert ProofTreeVisitor to use VisitorResult 2024-03-05 13:30:49 -05:00
regions.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00