fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0309]: the parameter type `A` may not live long enough 2 --> $DIR/regions-infer-bound-from-trait.rs:33:5 3 | 4LL | fn bar1<'a,A>(x: Inv<'a>, a: A) { 5 | - help: consider adding an explicit lifetime bound `A: 'a`... 6LL | check_bound(x, a) 7 | ^^^^^^^^^^^ 8 | 9note: ...so that the type `A` will meet its required lifetime bounds 10 --> $DIR/regions-infer-bound-from-trait.rs:33:5 11 | 12LL | check_bound(x, a) 13 | ^^^^^^^^^^^ 14 15error[E0309]: the parameter type `A` may not live long enough 16 --> $DIR/regions-infer-bound-from-trait.rs:37:5 17 | 18LL | fn bar2<'a,'b,A:Is<'b>>(x: Inv<'a>, y: Inv<'b>, a: A) { 19 | -- help: consider adding an explicit lifetime bound `A: 'a`... 20LL | check_bound(x, a) 21 | ^^^^^^^^^^^ 22 | 23note: ...so that the type `A` will meet its required lifetime bounds 24 --> $DIR/regions-infer-bound-from-trait.rs:37:5 25 | 26LL | check_bound(x, a) 27 | ^^^^^^^^^^^ 28 29error: aborting due to 2 previous errors 30 31For more information about this error, try `rustc --explain E0309`.