diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/issue-1930.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/issue-1930.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-1930.rs b/gcc/testsuite/rust/compile/issue-1930.rs index ab30ccc..071b3da 100644 --- a/gcc/testsuite/rust/compile/issue-1930.rs +++ b/gcc/testsuite/rust/compile/issue-1930.rs @@ -1,4 +1,7 @@ // { dg-options "-w" } +#[lang = "sized"] +pub trait Sized {} + fn test<T>(x: *mut T) { let x = x as *mut u8; } |