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
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/feature-gates/feature-gate-start.rs

4 lines
111 B
Rust
Raw Normal View History

syntax: Feature gate #[start] and #[main] These two attributes are used to change the entry point into a Rust program, but for now they're being put behind feature gates until we have a chance to think about them a little more. The #[start] attribute specifically may have its signature changed. This is a breaking change to due the usage of these attributes generating errors by default now. If your crate is using these attributes, add this to your crate root: #![feature(start)] // if you're using the #[start] attribute #![feature(main)] // if you're using the #[main] attribute cc #20064
2015-01-16 10:55:24 -08:00
#[start]
Make sure feature gate errors are recoverable (take 2)
2019-01-02 17:14:24 +03:00
fn foo(_: isize, _: *const *const u8) -> isize { 0 }
Add backticks to various diagnostics
2020-01-05 00:17:46 +00:00
//~^ ERROR `#[start]` functions are experimental
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3909ms 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