mirror of https://github.com/rust-lang/rust
21 lines
618 B
Plaintext
21 lines
618 B
Plaintext
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 item
|
|
|
|
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: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|