mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
19 lines
306 B
Rust
19 lines
306 B
Rust
// compile-flags: -Z trait-solver=chalk
|
|
|
|
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
|
|
}
|