1 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
2 --> $DIR/regions-assoc-type-static-bound-in-trait-not-met.rs:9:10
4 LL | impl<'a> Foo for &'a i32 {
7 note: first, the lifetime cannot outlive the lifetime `'a` as defined on the impl at 9:6...
8 --> $DIR/regions-assoc-type-static-bound-in-trait-not-met.rs:9:6
10 LL | impl<'a> Foo for &'a i32 {
12 note: ...so that the types are compatible
13 --> $DIR/regions-assoc-type-static-bound-in-trait-not-met.rs:9:10
15 LL | impl<'a> Foo for &'a i32 {
17 = note: expected `Foo`
19 = note: but, the lifetime must be valid for the static lifetime...
20 note: ...so that the type `&i32` will meet its required lifetime bounds
21 --> $DIR/regions-assoc-type-static-bound-in-trait-not-met.rs:9:10
23 LL | impl<'a> Foo for &'a i32 {
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0495`.