mirror of https://github.com/rust-lang/rust
21 lines
503 B
Rust
21 lines
503 B
Rust
//@ revisions: old next
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@[next] compile-flags: -Znext-solver
|
|
pub trait Scalar: 'static {
|
|
type RefType<'a>: ScalarRef<'a>;
|
|
}
|
|
|
|
pub trait ScalarRef<'a>: 'a {}
|
|
|
|
fn cmp_eq<'a, 'b, A: Scalar, B: Scalar, O: Scalar>(a: A::RefType<'a>, b: B::RefType<'b>) -> O {
|
|
todo!()
|
|
}
|
|
|
|
fn build_expression<A: Scalar, B: Scalar, O: Scalar>(
|
|
) -> impl Fn(A::RefType<'_>, B::RefType<'_>) -> O {
|
|
cmp_eq
|
|
//~^ ERROR type annotations needed
|
|
}
|
|
|
|
fn main() {}
|