]> git.lizzy.rs Git - rust.git/blob - tests/ui/chalkify/chalk_initial_program.rs
Rollup merge of #106831 - estebank:tickets_yaml, r=Mark-Simulacrum
[rust.git] / tests / ui / chalkify / chalk_initial_program.rs
1 // compile-flags: -Z trait-solver=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 }