summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-yeet_expr.rs
blob: 978a84cf6e5f04774951110f926ba9da4b9ad3cf (plain)
1
2
3
4
5
6
7
8
9
// 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
}