mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:39:20 +00:00
14 lines
235 B
Rust
14 lines
235 B
Rust
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() {}
|