2021-12-08 23:25:52 +01:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-79674.rs:26:5
|
|
|
|
|
|
|
|
|
LL | requires_distinct("str", 12);
|
|
|
|
| ^^^^^^^^^^^^^^^^^ expected `true`, found `false`
|
|
|
|
|
|
2022-08-12 02:00:37 +00:00
|
|
|
= note: expected constant `true`
|
|
|
|
found constant `false`
|
2022-08-12 03:13:45 +00:00
|
|
|
note: required by a bound in `requires_distinct`
|
|
|
|
--> $DIR/issue-79674.rs:23:37
|
|
|
|
|
|
|
|
|
LL | fn requires_distinct<A, B>(_a: A, _b: B) where
|
2023-02-21 05:21:07 +00:00
|
|
|
| ----------------- required by a bound in this function
|
2022-08-12 03:13:45 +00:00
|
|
|
LL | A: MiniTypeId, B: MiniTypeId,
|
|
|
|
LL | Lift<{is_same_type::<A, B>()}>: IsFalse {}
|
|
|
|
| ^^^^^^^ required by this bound in `requires_distinct`
|
2021-12-08 23:25:52 +01:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|