1 error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
2 --> $DIR/shadowing.rs:4:14
4 LL | trait Shadow<'a> {
5 | -- first declared here
7 | ^^ lifetime `'a` already in scope
9 error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
10 --> $DIR/shadowing.rs:13:14
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
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
20 LL | trait ShadowT<T> {
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
28 LL | impl<T> NoShadowT<T> for Option<T> {
30 LL | type Bar<T> = i32;
33 error: aborting due to 4 previous errors
35 Some errors have detailed explanations: E0403, E0496.
36 For more information about an error, try `rustc --explain E0403`.