2023-01-02 23:18:00 +00:00
|
|
|
// compile-flags: -Z trait-solver=chalk
|
2020-03-03 11:25:03 -05:00
|
|
|
|
|
|
|
trait Foo { }
|
|
|
|
|
|
|
|
impl<T> Foo for (T, u32) { }
|
|
|
|
|
|
|
|
fn gimme<F: Foo>() { }
|
|
|
|
|
|
|
|
fn foo<T>() {
|
|
|
|
gimme::<(T, u32)>();
|
|
|
|
gimme::<(Option<T>, u32)>();
|
|
|
|
gimme::<(Option<T>, f32)>(); //~ ERROR
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
gimme::<(i32, u32)>();
|
|
|
|
gimme::<(i32, f32)>(); //~ ERROR
|
|
|
|
}
|