Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-yeet_expr.rs
blob: 12cc17e1cc89ae8be437ec2324f2c5a3584080a6 [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags: --edition 2018
pub
fn
demo
()
->
Option
<
i32
>
{
do
yeet
//~ ERROR `do yeet` expression is experimental
}
pub
fn
main
()
->
Result
<(),
String
>
{
do
yeet
"hello"
;
//~ ERROR `do yeet` expression is experimental
}