blob: 6301ac4a323f63dcff30df657511878009134077 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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() {
}
|