aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/const-issue1440.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/const-issue1440.rs')
-rw-r--r--gcc/testsuite/rust/compile/const-issue1440.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/const-issue1440.rs b/gcc/testsuite/rust/compile/const-issue1440.rs
index 2529a1c..3a2989c 100644
--- a/gcc/testsuite/rust/compile/const-issue1440.rs
+++ b/gcc/testsuite/rust/compile/const-issue1440.rs
@@ -1,6 +1,9 @@
// { dg-additional-options "-w" }
#![feature(intrinsics)]
+#[lang = "sized"]
+pub trait Sized {}
+
mod intrinsics {
extern "rust-intrinsic" {
pub fn wrapping_add<T>(a: T, b: T) -> T;