about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/nested-in-anon-const.stderr
blob: 54389efc9c6de6dd75800164412a63094ea60b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0308]: mismatched types
  --> $DIR/nested-in-anon-const.rs:12:17
   |
LL | /                 {
LL | |                     type B<Z> = impl Sized;
LL | |
LL | |                 },
   | |_________________^ expected `usize`, found `()`

error: unconstrained opaque type
  --> $DIR/nested-in-anon-const.rs:13:33
   |
LL |                     type B<Z> = impl Sized;
   |                                 ^^^^^^^^^^
   |
   = note: `B` must be used in combination with a concrete type within the same crate

error: aborting due to 2 previous errors

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