]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/generic_const_exprs/obligation-cause.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / const-generics / generic_const_exprs / obligation-cause.stderr
1 error[E0308]: mismatched types
2   --> $DIR/obligation-cause.rs:20:5
3    |
4 LL |     g::<usize>();
5    |     ^^^^^^^^^^ expected `false`, found `true`
6    |
7    = note: expected constant `false`
8               found constant `true`
9 note: required by a bound in `g`
10   --> $DIR/obligation-cause.rs:13:44
11    |
12 LL | fn g<T>()
13    |    - required by a bound in this
14 ...
15 LL |     Is<{ std::mem::size_of::<T>() == 0 }>: True,
16    |                                            ^^^^ required by this bound in `g`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.