Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
tests
/
ui
/
lifetimes
/
mismatched-lifetime-syntaxes-details
/
example-from-issue48686.rs
blob: 9162a38f51099f6397696d9f9ef31ff500f065cd [
file
] [
log
] [
blame
]
#![
deny
(
mismatched_lifetime_syntaxes
)]
struct
Foo
;
impl
Foo
{
pub
fn
get_mut
(&
'
static
self
,
x
:
&
mut
u8
)
->
&
mut
u8
{
//~^ ERROR eliding a lifetime that's named elsewhere is confusing
unsafe
{
&
mut
*(
x
as
*
mut
_
)
}
}
}
fn
main
()
{}