Sign in
fuchsia
/
third_party
/
rust
/
e356279bdfe6840236877b298f0c577e0f9221ff
/
.
/
tests
/
ui
/
impl-header-lifetime-elision
/
explicit-and-elided-same-header.rs
blob: fb5f9b0aeee55de8dc1d7b562005d1128b74c9ef [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
warnings
)]
// This works for functions...
fn
foo
<
'a>(x: &str, y: &'
a str
)
{}
// ...so this should work for impls
impl
<
'a> Foo<&str> for &'
a str
{}
trait
Foo
<
T
>
{}
fn
main
()
{
}