rust/tests/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
202 B
Rust
Raw Normal View History

// 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() {
}