]> git.lizzy.rs Git - rust.git/commit
rollup merge of #24894: bguiz/diagnostic-E0267
authorAlex Crichton <alex@alexcrichton.com>
Wed, 29 Apr 2015 22:45:43 +0000 (15:45 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 29 Apr 2015 22:45:43 +0000 (15:45 -0700)
commit4ff558cdba03907b699eb908ad4ce8e0d62791b1
treef4ce18381b839a512289295208587072b3b83bbb
parent783b4bbf69024fabc2f44c7fc158f82ccf71c4b0
parent1335be33e4587184069a7a50c813ce6420b81a5f
rollup merge of #24894: bguiz/diagnostic-E0267

This error indicates that a constant references itself.
All constants need to resolve to a value in an acyclic manner.

For example, neither of the following can be sensibly compiled:

```
const X: u32 = X;
```

```
const X: u32 = Y;
const Y: u32 = X;
```
src/librustc/diagnostics.rs