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