From: Philip Herron <[email protected]>

Fixes Rust-GCC/gccrs#3903

gcc/testsuite/ChangeLog:

        * rust/compile/issues/3903.rs: New test.

Signed-off-by: Philip Herron <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/d8acc13674d8af0ac336bbee004a2dd28673b802

The commit has been mentioned in the following issue(s):
 - Rust-GCC/gccrs#3903: https://github.com/Rust-GCC/gccrs/issues/3903

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4907

 gcc/testsuite/rust/compile/issues/3903.rs | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/issues/3903.rs

diff --git a/gcc/testsuite/rust/compile/issues/3903.rs 
b/gcc/testsuite/rust/compile/issues/3903.rs
new file mode 100644
index 000000000..040dcee80
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issues/3903.rs
@@ -0,0 +1,17 @@
+// { dg-options "-w" }
+
+#![feature(no_core, lang_items)]
+#![no_core]
+
+#[lang = "sized"]
+pub trait Sized {}
+
+trait Foo {
+    type Value;
+}
+impl Foo for u32 {
+    type Value = f64;
+}
+struct A {
+    T: <u32 as Foo>::Value,
+}

base-commit: 50e9221c4a02ba0b4add6f5fd6f0f13cf4e11db1
-- 
2.55.0

Reply via email to