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::(); +}