From 018c4950b9406055dec02ef0fb52f132e2bb1e2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:25:56 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/next-solver/param-discr-kind.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/ui/traits/next-solver/param-discr-kind.rs (limited to 'tests/ui/traits/next-solver/param-discr-kind.rs') diff --git a/tests/ui/traits/next-solver/param-discr-kind.rs b/tests/ui/traits/next-solver/param-discr-kind.rs new file mode 100644 index 000000000..c66b0b9f4 --- /dev/null +++ b/tests/ui/traits/next-solver/param-discr-kind.rs @@ -0,0 +1,8 @@ +// compile-flags: -Znext-solver +// check-pass + +fn foo(x: T) { + std::mem::discriminant(&x); +} + +fn main() {} -- cgit v1.2.3