blob: 48798e2a15dbb52706068eb7daff541588e8e863 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ ignore-compare-mode-next-solver (explicit revisions)
fn equal<T>(a: &T, b: &T) -> bool
where
T: Eq,
{
a == b
}
struct Struct;
fn main() {
drop(equal(&Struct, &Struct))
//~^ ERROR the trait bound `Struct: Eq` is not satisfied
}
|