]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | warning: skipping const checks |
2 | --> $DIR/const-points-to-static.rs:5:20 | |
3 | | | |
4 | LL | const TEST: &u8 = &MY_STATIC; | |
5 | | ^^^^^^^^^ | |
6 | ||
7 | error[E0080]: it is undefined behavior to use this value | |
8 | --> $DIR/const-points-to-static.rs:5:1 | |
9 | | | |
10 | LL | const TEST: &u8 = &MY_STATIC; | |
11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant accesses static | |
12 | | | |
13 | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. | |
14 | ||
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0080`. |