about summary refs log tree commit diff
path: root/tests/ui/const-generics/associated_const_equality/equality_bound_with_infer.stderr
blob: 00741c901e4c1e63ea82d79270fdfa557ca5f7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0271]: type mismatch resolving `<() as Foo>::ASSOC<_> == 10`
  --> $DIR/equality_bound_with_infer.rs:18:14
   |
LL |     bar::<_, ()>();
   |              ^^ expected `10`, found `<() as Foo>::ASSOC::<_>`
   |
   = note: expected constant `10`
              found constant `<() as Foo>::ASSOC::<_>`
note: required by a bound in `bar`
  --> $DIR/equality_bound_with_infer.rs:15:29
   |
LL | fn bar<const N: u32, T: Foo<ASSOC<N> = 10>>() {}
   |                             ^^^^^^^^^^^^^ required by this bound in `bar`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0271`.