From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- 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 00000000000..df14bc62e76 --- /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 1.4.1-3-g733a5