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/feature-gates/feature-gate-ffi_const.rs

7 lines
148 B
Rust
Raw Normal View History

Add tests for `#[ffi_const]` and `#[ffi_pure]` function attributes Based on the work of gnzlbg <gonzalobg88@gmail.com>.
2020-04-14 00:21:19 +02:00
#![crate_type = "lib"]
Update tests for extern block linting
2020-09-01 17:12:52 -04:00
extern "C" {
error on unsafe attributes in pre-2024 editions the `no_mangle`, `link_section` and `export_name` attributes are exceptions, and can still be used without an unsafe in earlier editions
2025-04-12 19:58:19 +02:00
#[unsafe(ffi_const)] //~ ERROR the `#[ffi_const]` attribute is an experimental feature
Add tests for `#[ffi_const]` and `#[ffi_pure]` function attributes Based on the work of gnzlbg <gonzalobg88@gmail.com>.
2020-04-14 00:21:19 +02:00
pub fn foo();
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2431ms 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