Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
55b6f649024b372af901b3412a6d36c4284ccf3d
rust/tests/ui/consts/issue-47789.rs

11 lines
134 B
Rust
Raw Normal View History

Use check-pass in ui tests where appropriate
2019-11-04 00:00:00 +00:00
// check-pass
Add `#![allow(..)]` for a slew of lints of migrated run-pass tests, to silence stderr output.
2018-08-31 15:02:01 +02:00
#![allow(non_upper_case_globals)]
Fix ICE when assigning references to a static mut with NLL is_unsafe_place only filters out statics in the rhs, not the lhs. Since it's possible to reach that 'Place::Static', we handle statics the same way as we do locals. Fixes #47789
2018-01-30 21:44:35 -05:00
static mut x: &'static u32 = &0;
fn foo() {
unsafe { x = &1; }
}
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3553ms Template: 3ms
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