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/enum/enum-in-scope.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/ui/enum/enum-in-scope.rs (limited to 'tests/ui/enum/enum-in-scope.rs') diff --git a/tests/ui/enum/enum-in-scope.rs b/tests/ui/enum/enum-in-scope.rs new file mode 100644 index 000000000..df14bc62e --- /dev/null +++ b/tests/ui/enum/enum-in-scope.rs @@ -0,0 +1,7 @@ +#![allow(non_camel_case_types)] + +struct hello(isize); + +fn main() { + let hello = 0; //~ERROR let bindings cannot shadow tuple structs +} -- cgit v1.2.3