From: Philip Herron Date: Sun, 4 Feb 2024 16:38:16 +0000 (+0000) Subject: gccrs: Add testcase to show issue is already fixed X-Git-Tag: basepoints/gcc-15~1281 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae2f70932225634d38f8ee21a5d9bdcc91296425;p=thirdparty%2Fgcc.git gccrs: Add testcase to show issue is already fixed Fixes #2782 gcc/testsuite/ChangeLog: * rust/compile/issue-2782.rs: New test. Signed-off-by: Philip Herron --- diff --git a/gcc/testsuite/rust/compile/issue-2782.rs b/gcc/testsuite/rust/compile/issue-2782.rs new file mode 100644 index 000000000000..e199c882c868 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2782.rs @@ -0,0 +1,12 @@ +#[lang = "sized"] +pub trait Sized {} + +struct S(T); + +impl S { + fn foo() {} +} + +fn main() { + S::foo::(); +}