]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / 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    |        --- you might have meant to refer to this struct
6 ...
7 LL | impl<Baz> Foo<Baz> for Bar {
8    |      --- found this type parameter
9 ...
10 LL |             Baz { num } => num,
11    |             ^^^ not a struct, variant or union type
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0574`.