// check-fail // compile-flags: -Z chalk trait Foo { } struct S { x: T, } impl Foo for i32 { } impl Foo for Option { } fn main() { let s = S { x: 5, }; let s = S { x: 5.0, //~ ERROR the trait bound `{float}: Foo` is not satisfied }; let s = S { x: Some(5.0), }; }