rust/tests/ui/impl-header-lifetime-elision/path-elided.rs

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

12 lines
167 B
Rust
Raw Normal View History

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