Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust/tests/ui/error-codes/E0396-fixed.rs

10 lines
181 B
Rust
Raw Normal View History

Stabilize `const_raw_ptr_deref` for `*const T` This stabilizes dereferencing immutable raw pointers in const contexts. It does not stabilize `*mut T` dereferencing. This is placed behind the `const_raw_mut_ptr_deref` feature gate.
2021-10-05 04:55:57 -04:00
#![feature(const_mut_refs)]
Place unions, pointer casts and pointer derefs behind extra feature gates
2018-07-02 19:00:07 +02:00
Stabilize `const_raw_ptr_deref` for `*const T` This stabilizes dereferencing immutable raw pointers in const contexts. It does not stabilize `*mut T` dereferencing. This is placed behind the `const_raw_mut_ptr_deref` feature gate.
2021-10-05 04:55:57 -04:00
const REG_ADDR: *mut u8 = 0x5f3759df as *mut u8;
Place unions, pointer casts and pointer derefs behind extra feature gates
2018-07-02 19:00:07 +02:00
const VALUE: u8 = unsafe { *REG_ADDR };
bless mir-opt, codegen, and remaining ui tests
2021-07-14 09:57:54 +02:00
//~^ ERROR evaluation of constant value failed
Place unions, pointer casts and pointer derefs behind extra feature gates
2018-07-02 19:00:07 +02:00
fn main() {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1533ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API