mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
20 lines
328 B
Rust
20 lines
328 B
Rust
// compile-flags: --edition 2021
|
|
|
|
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();
|
|
}
|