]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr
af9f4612ab342b9cdecc38cbbaf27e5e15dd7fb3
[rust.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 | impl<Baz> Foo<Baz> for Bar {
5    |      --- found this type parameter
6 ...
7 LL |             Baz { num } => num,
8    |             ^^^ not a struct, variant or union type
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0574`.