diff options
Diffstat (limited to 'tests/ui/impl-header-lifetime-elision/path-elided.rs')
-rw-r--r-- | tests/ui/impl-header-lifetime-elision/path-elided.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/impl-header-lifetime-elision/path-elided.rs b/tests/ui/impl-header-lifetime-elision/path-elided.rs new file mode 100644 index 000000000..40a52efc7 --- /dev/null +++ b/tests/ui/impl-header-lifetime-elision/path-elided.rs @@ -0,0 +1,11 @@ +#![allow(warnings)] + +trait MyTrait { } + +struct Foo<'a> { x: &'a u32 } + +impl MyTrait for Foo { + //~^ ERROR implicit elided lifetime not allowed here +} + +fn main() {} |