Skip to content

Commit

Permalink
gccrs: Add testcase to show issue is already fixed
Browse files Browse the repository at this point in the history
Fixes #2782

gcc/testsuite/ChangeLog:

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

Signed-off-by: Philip Herron <[email protected]>
  • Loading branch information
philberty committed Feb 4, 2024
1 parent 5b7d674 commit e2cb2a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gcc/testsuite/rust/compile/issue-2782.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#[lang = "sized"]
pub trait Sized {}

struct S<T>(T);

impl S<u8> {
fn foo<U>() {}
}

fn main() {
S::foo::<i32>();
}

0 comments on commit e2cb2a7

Please sign in to comment.