mod core { mod ops { #[lang = "add"] pub trait Add { type Output; fn add(self, rhs: Rhs) -> Self::Output; } } } pub fn foo>(a: T) -> i32 { // { dg-error "bounds not satisfied for f32 .Add. is not satisfied" "" { target *-*-* } .-1 } a + a } pub fn main() { foo(123f32); }