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

21 lines
684 B
Plaintext

error: unsatisfied lifetime constraints
--> $DIR/lub-match.rs:40:13
|
LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
| -- lifetime `'a` defined here
...
LL | s //~ ERROR E0312
| ^ returning this value requires that `'a` must outlive `'static`
error: unsatisfied lifetime constraints
--> $DIR/lub-match.rs:49:13
|
LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
| -- lifetime `'a` defined here
...
LL | s //~ ERROR E0312
| ^ returning this value requires that `'a` must outlive `'static`
error: aborting due to 2 previous errors