Files
rust/tests/ui/const-generics/generic_const_exprs
Jonathan Brouwer 6f13b5244c Rollup merge of #153795 - arferreira:turbofish-span-improvement, r=Kivooeo,eggyal
Point turbofish inference errors at the uninferred generic arg

Follow-up to rust-lang/rust#153751.

When a method call has a turbofish with an uninferred generic argument, point the diagnostic span at the specific `_` that couldn't be inferred instead of the method name.

Before:
```rust
LL |     S.f::<u32, _>(42);
   |       ^ cannot infer type of the type parameter `B`
```

After:
```rust
LL |     S.f::<u32, _>(42);
   |                ^ cannot infer type of the type parameter `B`
```

Path expressions (`None::<_>`, `foo::<_>()`) are not handled yet, that's a separate code path.

cc @eggyal
2026-03-17 21:20:02 +01:00
..
2025-06-11 15:30:15 +01:00
2024-07-02 17:07:21 +01:00
2024-07-02 17:07:21 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2026-02-11 18:08:18 +09:00
2025-02-14 00:37:23 +01:00
2025-02-14 00:37:23 +01:00
2025-06-11 15:30:15 +01:00
2025-05-21 20:20:19 +01:00
2024-12-18 16:35:06 +01:00