]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/shadowing.stderr
Bless tests.
[rust.git] / src / test / ui / generic-associated-types / shadowing.stderr
1 error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
2   --> $DIR/shadowing.rs:4:14
3    |
4 LL | trait Shadow<'a> {
5    |              -- first declared here
6 LL |     type Bar<'a>;
7    |              ^^ lifetime `'a` already in scope
8
9 error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
10   --> $DIR/shadowing.rs:13:14
11    |
12 LL | impl<'a> NoShadow<'a> for &'a u32 {
13    |      -- first declared here
14 LL |     type Bar<'a> = i32;
15    |              ^^ lifetime `'a` already in scope
16
17 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
18   --> $DIR/shadowing.rs:18:14
19    |
20 LL | trait ShadowT<T> {
21    |               - first use of `T`
22 LL |     type Bar<T>;
23    |              ^ already used
24
25 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
26   --> $DIR/shadowing.rs:27:14
27    |
28 LL | impl<T> NoShadowT<T> for Option<T> {
29    |      - first use of `T`
30 LL |     type Bar<T> = i32;
31    |              ^ already used
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`.