mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 19:57:10 +00:00
20 lines
331 B
Rust
20 lines
331 B
Rust
//@ compile-flags: --edition 2021
|
|
|
|
pub fn demo() -> Option<i32> {
|
|
#[cfg(FALSE)]
|
|
{
|
|
do yeet //~ ERROR `do yeet` expression is experimental
|
|
}
|
|
|
|
Some(1)
|
|
}
|
|
|
|
#[cfg(FALSE)]
|
|
pub fn alternative() -> Result<(), String> {
|
|
do yeet "hello"; //~ ERROR `do yeet` expression is experimental
|
|
}
|
|
|
|
fn main() {
|
|
demo();
|
|
}
|