Matthias Krüger c1b4d075a2
Rollup merge of #112506 - compiler-errors:const-infer-ice, r=b-naber
Properly check associated consts for infer placeholders

We only reported an error if it was in a "suggestable" position (according to `is_suggestable_infer_ty`) -- this isn't correct for infer tys that can show up in other places in the constant's type, like behind a dyn trait.

fixes #112491
2023-06-14 18:10:30 +02:00
..
2023-06-12 20:24:48 +08:00
2023-06-12 20:24:48 +08:00
2023-06-13 21:54:11 +00:00
2023-06-13 21:54:11 +00:00
2023-06-10 14:46:11 -04:00
2023-06-12 20:24:48 +08:00
2023-06-12 20:24:48 +08:00
2023-06-12 20:24:48 +08:00
2023-06-12 20:24:48 +08:00
2023-06-12 20:24:48 +08:00
2023-06-12 20:24:48 +08:00