Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
impl-header-lifetime-elision
/
explicit-and-elided-same-header.rs
blob: 6301ac4a323f63dcff30df657511878009134077 [
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
()
{
}