Sign in
fuchsia
/
third_party
/
rust
/
8c93798e9f80d6d6ed9a2ab4b01af06a8fea23b7
/
.
/
src
/
test
/
ui
/
nll
/
mir_check_cast_unsize.rs
blob: e98d5e14fca62562b72a797d4a6e0eab059c19ea [
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 unsatisfied lifetime constraints
}
fn
main
()
{}