From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs (limited to 'tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs') diff --git a/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs b/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs new file mode 100644 index 000000000..a1c7af128 --- /dev/null +++ b/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs @@ -0,0 +1,10 @@ +// check-pass + +trait X { + fn test(x: u32, ( +//~^ WARN anonymous parameters are deprecated and will be removed in the next edition +//~^^ WARN this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! + )) {} +} + +fn main() {} -- cgit v1.2.3