Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
issues
/
issue-23406.rs
blob: 2e57b16e3c7f06f64ca44affd7c21b78c432fd6a [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be check-pass?)
#![
allow
(
dead_code
)]
trait
Inner
{
type
T
;
}
impl
<
'a> Inner for &'
a i32
{
type
T
=
i32
;
}
fn
f
<
'a>(x: &'
a i32
)
->
<&
'
a i32
as
Inner
>::
T
{
*
x
}
fn
main
()
{}