This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust
/
tests
/
ui
/
windows-subsystem
/
windows-subsystem-invalid.rs
6 lines
92 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Add knowledge of Windows subsystems. This commit is an implementation of [RFC 1665] which adds support for the `#![windows_subsystem]` attribute. This attribute allows specifying either the "windows" or "console" subsystems on Windows to the linker. [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md Previously all Rust executables were compiled as the "console" subsystem which meant that if you wanted a graphical application it would erroneously pop up a console whenever opened. When compiling an application, however, this is undesired behavior and the "windows" subsystem is used instead to have control over user interactions. This attribute is validated, but ignored on all non-Windows platforms. cc #37499
2016-10-31 09:36:30 -07:00
#![
windows_subsystem =
"
wrong
"
]
fn
main
(
)
{
}
compiletest: Require `//~` annotations even if `error-pattern` is specified
2025-03-29 02:41:32 +03:00
//~? ERROR invalid windows subsystem `wrong`
Reference in New Issue
Copy Permalink