rust/src/test/ui/enum/issue-67945-1.stderr

18 lines
499 B
Plaintext
Raw Normal View History

2020-05-07 02:14:05 +09:00
error[E0308]: mismatched types
--> $DIR/issue-67945-1.rs:3:20
|
LL | enum Bug<S> {
| - this type parameter
LL | Var = {
LL | let x: S = 0;
| - ^ expected type parameter `S`, found integer
| |
| expected due to this
|
= note: expected type parameter `S`
found type `{integer}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.