rust/src/test/ui/regions/regions-creating-enums4.nll.stderr
Basile Desloges b01550a718 Update tests
2018-09-01 12:58:18 +02:00

13 lines
460 B
Plaintext

error: unsatisfied lifetime constraints
--> $DIR/regions-creating-enums4.rs:17:5
|
LL | fn mk_add_bad2<'a,'b>(x: &'a ast<'a>, y: &'a ast<'a>, z: &ast) -> ast<'b> {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
LL | ast::add(x, y) //~ ERROR cannot infer
| ^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'b`
error: aborting due to previous error