diff options
author | Philip Herron <herron.philip@googlemail.com> | 2024-02-04 16:38:16 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-07 12:40:23 +0100 |
commit | ae2f70932225634d38f8ee21a5d9bdcc91296425 (patch) | |
tree | f9a1dec9b042b97e0544d2702c279a2f7ea4be6a /gcc/testsuite/rust | |
parent | 955f332446f5f4f2025020e07cd01e9727cbd032 (diff) | |
download | gcc-ae2f70932225634d38f8ee21a5d9bdcc91296425.zip gcc-ae2f70932225634d38f8ee21a5d9bdcc91296425.tar.gz gcc-ae2f70932225634d38f8ee21a5d9bdcc91296425.tar.bz2 |
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 <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/testsuite/rust')
-rw-r--r-- | gcc/testsuite/rust/compile/issue-2782.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-2782.rs b/gcc/testsuite/rust/compile/issue-2782.rs new file mode 100644 index 0000000..e199c88 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2782.rs @@ -0,0 +1,12 @@ +#[lang = "sized"] +pub trait Sized {} + +struct S<T>(T); + +impl S<u8> { + fn foo<U>() {} +} + +fn main() { + S::foo::<i32>(); +} |