2022-04-26 19:49:00 -07:00
|
|
|
//@ compile-flags: --edition 2021
|
|
|
|
|
|
|
|
pub fn demo() -> Option<i32> {
|
2024-04-09 23:16:57 +02:00
|
|
|
#[cfg(FALSE)]
|
2022-04-26 19:49:00 -07:00
|
|
|
{
|
|
|
|
do yeet //~ ERROR `do yeet` expression is experimental
|
|
|
|
}
|
|
|
|
|
|
|
|
Some(1)
|
|
|
|
}
|
|
|
|
|
2024-04-09 23:16:57 +02:00
|
|
|
#[cfg(FALSE)]
|
2022-04-26 19:49:00 -07:00
|
|
|
pub fn alternative() -> Result<(), String> {
|
|
|
|
do yeet "hello"; //~ ERROR `do yeet` expression is experimental
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
demo();
|
|
|
|
}
|