error: unsatisfied lifetime constraints --> $DIR/regions-creating-enums3.rs:17:5 | LL | fn mk_add_bad1<'a,'b>(x: &'a ast<'a>, y: &'b ast<'b>) -> ast<'a> { | -- -- lifetime `'b` defined here | | | lifetime `'a` defined here LL | ast::add(x, y) //~ ERROR 17:5: 17:19: lifetime mismatch [E0623] | ^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` error: aborting due to previous error