]> gcc.gnu.org Git - gcc.git/commitdiff
gccrs: Add testcase to show issue is already fixed
authorPhilip Herron <herron.philip@googlemail.com>
Sun, 4 Feb 2024 16:38:16 +0000 (16:38 +0000)
committerPhilip Herron <philip.herron@embecosm.com>
Sun, 4 Feb 2024 17:18:35 +0000 (17:18 +0000)
Fixes #2782

gcc/testsuite/ChangeLog:

* rust/compile/issue-2782.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/testsuite/rust/compile/issue-2782.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/issue-2782.rs b/gcc/testsuite/rust/compile/issue-2782.rs
new file mode 100644 (file)
index 0000000..e199c88
--- /dev/null
@@ -0,0 +1,12 @@
+#[lang = "sized"]
+pub trait Sized {}
+
+struct S<T>(T);
+
+impl S<u8> {
+    fn foo<U>() {}
+}
+
+fn main() {
+    S::foo::<i32>();
+}
This page took 0.060807 seconds and 5 git commands to generate.