summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0224.md
blob: 628488575b2f80c97aaecc6521fd5fc13b5413a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A trait object was declared with no traits.

Erroneous code example:

```compile_fail,E0224
type Foo = dyn 'static +;
```

Rust does not currently support this.

To solve, ensure that the trait object has at least one trait:

```
type Foo = dyn 'static + Copy;
```