diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-27 14:55:06 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-28 11:04:26 +0200 |
| commit | 4d473300a200b26b04335dcd32200878ce8e6e04 (patch) | |
| tree | 1ed2ecc1771e81b16595211ef887d6425d1a8f0b /src/test/compile-fail | |
| parent | 4eea1a4e5e28a9a84579ee6a52f115375adefde6 (diff) | |
| download | rust-4d473300a200b26b04335dcd32200878ce8e6e04.tar.gz rust-4d473300a200b26b04335dcd32200878ce8e6e04.zip | |
Turn the use of erroneous constants into errors again
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/const-err.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/compile-fail/const-err.rs b/src/test/compile-fail/const-err.rs index f6a64bcba21..8683f6a0231 100644 --- a/src/test/compile-fail/const-err.rs +++ b/src/test/compile-fail/const-err.rs @@ -27,4 +27,6 @@ const FOO: u8 = [5u8][1]; fn main() { black_box((FOO, FOO)); + //~^ ERROR referenced constant has errors + //~| ERROR could not evaluate constant } |
