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