]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/shadowing.stderr
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / ui / 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:18: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[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
18   --> $DIR/shadowing.rs:13:14
19    |
20 LL | impl<'a> NoShadow<'a> for &'a u32 {
21    |      -- first declared here
22 LL |     type Bar<'a> = i32;
23    |              ^^ lifetime `'a` already in scope
24
25 error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
26   --> $DIR/shadowing.rs:4:14
27    |
28 LL | trait Shadow<'a> {
29    |              -- first declared here
30 LL |     type Bar<'a>;
31    |              ^^ lifetime `'a` already in scope
32
33 error: aborting due to 4 previous errors
34
35 Some errors have detailed explanations: E0403, E0496.
36 For more information about an error, try `rustc --explain E0403`.