]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1598-generic-associated-types/shadowing.stderr
Auto merge of #63462 - matthewjasper:hygienic-builtin-derives, r=petrochenkov
[rust.git] / src / test / ui / rfc1598-generic-associated-types / shadowing.stderr
1 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
2   --> $DIR/shadowing.rs:19:14
3    |
4 LL | trait ShadowT<T> {
5    |               - first use of `T`
6 LL |     type Bar<T>;
7    |              ^ already used
8
9 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
10   --> $DIR/shadowing.rs:27:14
11    |
12 LL | impl<T> NoShadowT<T> for Option<T> {
13    |      - first use of `T`
14 LL |     type Bar<T> = i32;
15    |              ^ already used
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0403`.