rust/src/test/ui/lub-if.nll.stderr

33 lines
914 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
warning: not reporting region error due to nll
--> $DIR/lub-if.rs:38:9
|
LL | s //~ ERROR E0312
| ^
warning: not reporting region error due to nll
--> $DIR/lub-if.rs:45:9
|
LL | s //~ ERROR E0312
| ^
error: unsatisfied lifetime constraints
2018-08-14 15:26:33 -05:00
--> $DIR/lub-if.rs:38:9
2018-08-08 07:28:26 -05:00
|
LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
| -- lifetime `'a` defined here
2018-08-14 15:26:33 -05:00
...
LL | s //~ ERROR E0312
| ^ returning this value requires that `'a` must outlive `'static`
2018-08-08 07:28:26 -05:00
error: unsatisfied lifetime constraints
2018-08-14 15:26:33 -05:00
--> $DIR/lub-if.rs:45:9
2018-08-08 07:28:26 -05:00
|
LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
| -- lifetime `'a` defined here
2018-08-14 15:26:33 -05:00
...
LL | s //~ ERROR E0312
| ^ returning this value requires that `'a` must outlive `'static`
2018-08-08 07:28:26 -05:00
error: aborting due to 2 previous errors