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 <herron.philip@googlemail.com>
1 parent bc2a3e6 commit 0a66f03

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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)