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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/static/static-mut-foreign-requires-unsafe.rs

10 lines
173 B
Rust
Raw Normal View History

Update tests for extern block linting
2020-09-01 17:12:52 -04:00
extern "C" {
ci: Start running wasm32 tests on Travis This commit allocates a builder to running wasm32 tests on Travis. Not all test suites pass right now so this is starting out with just the run-pass and the libcore test suites. This'll hopefully give us a pretty broad set of coverage for integration in rustc itself as well as a somewhat broad coverage of the llvm backend itself through integration/unit tests.
2017-11-26 10:39:16 -08:00
static mut a: i32;
Support foreign 'static mut' variables as well
2013-06-21 22:46:27 -07:00
}
fn main() {
Update tests for extern block linting
2020-09-01 17:12:52 -04:00
a += 3; //~ ERROR: requires unsafe
a = 4; //~ ERROR: requires unsafe
Support foreign 'static mut' variables as well
2013-06-21 22:46:27 -07:00
let _b = a; //~ ERROR: requires unsafe
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6906ms 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