From 1376c5a617be5c25655d0d7cb63e3beaa5a6e026 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:20:39 +0200 Subject: Merging upstream version 1.70.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/enum-discriminant/auxiliary/discr-foreign-dep.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/ui/enum-discriminant/auxiliary/discr-foreign-dep.rs (limited to 'tests/ui/enum-discriminant/auxiliary') diff --git a/tests/ui/enum-discriminant/auxiliary/discr-foreign-dep.rs b/tests/ui/enum-discriminant/auxiliary/discr-foreign-dep.rs new file mode 100644 index 000000000..a2cc10a4b --- /dev/null +++ b/tests/ui/enum-discriminant/auxiliary/discr-foreign-dep.rs @@ -0,0 +1,7 @@ +#[derive(Default)] +pub enum Foo { + A(u32), + #[default] + B, + C(u32), +} -- cgit v1.2.3