From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/impl-header-lifetime-elision/assoc-type.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ui/impl-header-lifetime-elision/assoc-type.stderr (limited to 'tests/ui/impl-header-lifetime-elision/assoc-type.stderr') diff --git a/tests/ui/impl-header-lifetime-elision/assoc-type.stderr b/tests/ui/impl-header-lifetime-elision/assoc-type.stderr new file mode 100644 index 000000000..c4f27e0b8 --- /dev/null +++ b/tests/ui/impl-header-lifetime-elision/assoc-type.stderr @@ -0,0 +1,15 @@ +error[E0637]: `&` without an explicit lifetime name cannot be used here + --> $DIR/assoc-type.rs:11:19 + | +LL | type Output = &i32; + | ^ explicit lifetime name needed here + +error[E0637]: `'_` cannot be used here + --> $DIR/assoc-type.rs:16:20 + | +LL | type Output = &'_ i32; + | ^^ `'_` is a reserved lifetime name + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0637`. -- cgit v1.2.3