rust/tests/ui/impl-header-lifetime-elision/path-elided.rs
2023-01-11 09:32:08 +00:00

12 lines
167 B
Rust

#![allow(warnings)]
trait MyTrait { }
struct Foo<'a> { x: &'a u32 }
impl MyTrait for Foo {
//~^ ERROR implicit elided lifetime not allowed here
}
fn main() {}