blob: 02ecd05e5f931baf5892a7779ef9ba383384147b [file] [log] [blame]
warning: not reporting region error due to nll
--> $DIR/mir_check_cast_unsize.rs:19:5
|
LL | x
| ^
error: unsatisfied lifetime constraints
--> $DIR/mir_check_cast_unsize.rs:17:46
|
LL | fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
| ________--____________________________________^
| | |
| | lifetime `'a` defined here
LL | | //~^ ERROR unsatisfied lifetime constraints
LL | | x
LL | | //~^ WARNING not reporting region error due to nll
LL | | }
| |_^ return requires that `'a` must outlive `'static`
error: aborting due to previous error