]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/chalkify/chalk_initial_program.rs
Update const_forget.rs
[rust.git] / src / test / compile-fail / chalkify / chalk_initial_program.rs
1 // compile-flags: -Z chalk
2
3 trait Foo { }
4
5 impl Foo for i32 { }
6
7 impl Foo for u32 { }
8
9 fn gimme<F: Foo>() { }
10
11 // Note: this also tests that `std::process::Termination` is implemented for `()`.
12 fn main() {
13     gimme::<i32>();
14     gimme::<u32>();
15     gimme::<f32>(); //~ERROR the trait bound `f32: Foo` is not satisfied
16 }