2018-04-09 04:28:00 -05:00
|
|
|
warning: not reporting region error due to nll
|
2017-11-22 16:39:46 -06:00
|
|
|
--> $DIR/region-lbr-named-does-not-outlive-static.rs:19:5
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &*x
|
2017-11-22 16:39:46 -06:00
|
|
|
| ^^^
|
|
|
|
|
2018-07-03 10:38:09 -05:00
|
|
|
error: unsatisfied lifetime constraints
|
2017-11-22 16:39:46 -06:00
|
|
|
--> $DIR/region-lbr-named-does-not-outlive-static.rs:19:5
|
|
|
|
|
|
2018-08-02 05:00:15 -05:00
|
|
|
LL | fn foo<'a>(x: &'a u32) -> &'static u32 {
|
|
|
|
| -- lifetime `'a` defined here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &*x
|
2018-07-26 08:36:41 -05:00
|
|
|
| ^^^ requires that `'a` must outlive `'static`
|
2017-11-22 16:39:46 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|