]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / resolve / point-at-type-parameter-shadowing-another-type.stderr
1 error[E0574]: expected struct, variant or union type, found type parameter `Baz`
2 --> $DIR/point-at-type-parameter-shadowing-another-type.rs:16:13
3 |
4 LL | / struct Baz {
5 LL | | num: usize,
6 LL | | }
7 | |_- you might have meant to refer to this struct
8 LL |
9 LL | impl<Baz> Foo<Baz> for Bar {
10 | --- found this type parameter
11 ...
12 LL | Baz { num } => num,
13 | ^^^ not a struct, variant or union type
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0574`.