Skip to content

Commit 0a66f03

Browse files
committed
gccrs: add test case to show issue is fixed
Fixes #3599 gcc/testsuite/ChangeLog: * rust/compile/issue-3599.rs: New test. Signed-off-by: Philip Herron <[email protected]>
1 parent bc2a3e6 commit 0a66f03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#[lang = "sized"]
2+
trait Sized {}
3+
4+
trait Bar {}
5+
6+
struct S; // { dg-warning "struct is never constructed" }
7+
8+
pub fn test(foo: impl Bar) {}

0 commit comments

Comments
 (0)