diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/generics12.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/generics12.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/generics12.rs b/gcc/testsuite/rust/compile/generics12.rs index f1ac8b0..b32f566 100644 --- a/gcc/testsuite/rust/compile/generics12.rs +++ b/gcc/testsuite/rust/compile/generics12.rs @@ -1,3 +1,6 @@ +#[lang = "sized"] +pub trait Sized {} + fn main() { bar(); // { dg-error "type annotations needed" "" { target *-*-* } .-1 } |