From: Philip Herron Date: Fri, 11 Jul 2025 09:16:36 +0000 (+0100) Subject: gccrs: add test case to show issue is fixed X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=24efd3aa45816bbd608aaf465d330a0cca9df20a;p=thirdparty%2Fgcc.git gccrs: add test case to show issue is fixed Fixes Rust-GCC#3599 gcc/testsuite/ChangeLog: * rust/compile/issue-3599.rs: New test. Signed-off-by: Philip Herron --- diff --git a/gcc/testsuite/rust/compile/issue-3599.rs b/gcc/testsuite/rust/compile/issue-3599.rs new file mode 100644 index 00000000000..1d29fac84e9 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-3599.rs @@ -0,0 +1,8 @@ +#[lang = "sized"] +trait Sized {} + +trait Bar {} + +struct S; // { dg-warning "struct is never constructed" } + +pub fn test(foo: impl Bar) {}