mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:20:40 +03:00
23f6cb5f12
Silence unused type param error on struct parse error
Given
```
#[derive(Clone)]
struct B<T> {
a: A<(T, u32)> // <- note, comma is missing here
/// asdf
b: u32,
}
```
do not emit unnecessary "unused `T`" error.
Fix rust-lang/rust#141403.