2022-08-11 22:41:57 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/obligation-cause.rs:20:5
|
|
|
|
|
|
|
|
|
LL | g::<usize>();
|
2024-01-23 20:52:29 -06:00
|
|
|
| ^^^^^^^^^^^^ expected `false`, found `true`
|
2022-08-11 22:41:57 -05:00
|
|
|
|
|
|
|
|
= note: expected constant `false`
|
|
|
|
found constant `true`
|
|
|
|
note: required by a bound in `g`
|
|
|
|
--> $DIR/obligation-cause.rs:13:44
|
|
|
|
|
|
|
|
|
LL | fn g<T>()
|
2023-02-20 23:21:07 -06:00
|
|
|
| - required by a bound in this function
|
2022-08-11 22:41:57 -05:00
|
|
|
...
|
|
|
|
LL | Is<{ std::mem::size_of::<T>() == 0 }>: True,
|
|
|
|
| ^^^^ required by this bound in `g`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-08-11 22:41:57 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|