aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/bounds1.rs (renamed from gcc/testsuite/rust/bounds1.rs)2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/rust/bounds1.rs b/gcc/testsuite/rust/compile/bounds1.rs
index 6658360..1ace9fb 100644
--- a/gcc/testsuite/rust/bounds1.rs
+++ b/gcc/testsuite/rust/compile/bounds1.rs
@@ -10,10 +10,10 @@ mod core {
}
pub fn foo<T: core::ops::Add<Output = i32>>(a: T) -> i32 {
- // { dg-error "bounds not satisfied for f32 .Add. is not satisfied" "" { target *-*-* } .-1 }
a + a
}
pub fn main() {
foo(123f32);
+ // { dg-error "bounds not satisfied for f32 .Add. is not satisfied" "" { target *-*-* } .-1 }
}