blob: 07c8606f9fe57cf23db4e17964b7562263166a4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(return_position_impl_trait_in_trait)]
trait Foo {
fn test() -> impl Sized;
}
impl<'a, T> Foo for T {
//~^ ERROR the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
fn test() -> &'a () {
&()
}
}
fn main() {}
|