# E4028

This expression has a type which is not a struct.

## Erroneous Example

```{literalinclude} /sources/error_codes/4028_error/top.mbt
:language: moonbit
```

The example above tries to assign a struct of type `T` to a variable `a` of type `Int`,
which is not possible and gives the following error on line 2:

```
This expression has type Int, which is a Int type and not a struct.
```

## Suggestion

Make sure to use the correct type instead:

```{literalinclude} /sources/error_codes/4028_fixed/top.mbt
:language: moonbit
```
