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

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

9 lines
134 B
Rust
Raw Normal View History

#![allow(warnings)]
2022-03-06 14:44:48 +00:00
trait MyTrait<'a> {}
2022-03-06 14:44:48 +00:00
impl MyTrait for u32 {}
//~^ ERROR implicit elided lifetime not allowed here
fn main() {}