diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-02 19:59:39 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-08-07 14:41:33 +0200 |
| commit | fee07534bbe192befadb03b1626c2bbf3d6e5cfb (patch) | |
| tree | 91eff421355539c24c88e68708e1a71117e8aaa7 /src/test/compile-fail | |
| parent | 3ef863bfdfb9173a0ad55d24e20202948dda6bbe (diff) | |
| download | rust-fee07534bbe192befadb03b1626c2bbf3d6e5cfb.tar.gz rust-fee07534bbe192befadb03b1626c2bbf3d6e5cfb.zip | |
Add feature gate checks
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/cast-ptr-to-int-const.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/compile-fail/cast-ptr-to-int-const.rs b/src/test/compile-fail/cast-ptr-to-int-const.rs index 30f94e1b5da..8764cb72b8c 100644 --- a/src/test/compile-fail/cast-ptr-to-int-const.rs +++ b/src/test/compile-fail/cast-ptr-to-int-const.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-const_raw_ptr_to_usize_cast + fn main() { const X: u32 = main as u32; //~ ERROR casting pointers to integers in constants is unstable const Y: u32 = 0; |
