Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
nll
/
mir_check_cast_unsize.rs
blob: d15c4e4f4672264cd2c992bf006a142e3947bed3 [
file
] [
log
] [
blame
]
// compile-flags: -Z borrowck=mir
#![
allow
(
dead_code
)]
use
std
::
fmt
::
Debug
;
fn
bar
<
'a>(x: &'
a u32
)
->
&
'
static
dyn
Debug
{
x
//~^ ERROR lifetime may not live long enough
}
fn
main
()
{}