]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / impl-header-lifetime-elision / explicit-and-elided-same-header.rs
1 // run-pass
2
3 #![allow(warnings)]
4
5 // This works for functions...
6 fn foo<'a>(x: &str, y: &'a str) {}
7
8 // ...so this should work for impls
9 impl<'a> Foo<&str> for &'a str {}
10 trait Foo<T> {}
11
12 fn main() {
13 }