]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / 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 }