diff options
Diffstat (limited to 'tests/ui/issues/issue-72278.rs')
-rw-r--r-- | tests/ui/issues/issue-72278.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-72278.rs b/tests/ui/issues/issue-72278.rs new file mode 100644 index 000000000..92fd1f73a --- /dev/null +++ b/tests/ui/issues/issue-72278.rs @@ -0,0 +1,19 @@ +// run-pass + +#![allow(unused)] + +struct S; + +impl S { + fn func<'a, U>(&'a self) -> U { + todo!() + } +} + +fn dont_crash<'a, U>() -> U { + S.func::<'a, U>() + //~^ WARN cannot specify lifetime arguments explicitly + //~| WARN this was previously accepted +} + +fn main() {} |