diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-02 23:38:57 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-05 20:49:46 +0200 |
| commit | 5c0d1355f261efd624e0f7755a87e46d954771d3 (patch) | |
| tree | b933114434c3ff23dc0e30d29ef10e5badb21028 /src/test/ui/const-eval/conditional_array_execution.stderr | |
| parent | 4a9c58c6bd0e609538053a35685e206f66019820 (diff) | |
Refactor the const eval diagnostic API
Diffstat (limited to 'src/test/ui/const-eval/conditional_array_execution.stderr')
| -rw-r--r-- | src/test/ui/const-eval/conditional_array_execution.stderr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/const-eval/conditional_array_execution.stderr b/src/test/ui/const-eval/conditional_array_execution.stderr index 5cf73b9fad6..00b39d08eaf 100644 --- a/src/test/ui/const-eval/conditional_array_execution.stderr +++ b/src/test/ui/const-eval/conditional_array_execution.stderr @@ -14,9 +14,11 @@ warning: this constant cannot be used --> $DIR/conditional_array_execution.rs:16:1 | LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to subtract with overflow + | ^^^^^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | | + | attempt to subtract with overflow -warning: constant evaluation error +warning: this expression will panic at runtime --> $DIR/conditional_array_execution.rs:21:20 | LL | println!("{}", FOO); |
