summaryrefslogtreecommitdiffstats
path: root/src/test/ui/try-trait/yeet-for-option.rs
blob: 753fbc1dee7d7c2adf1070264543864945f59331 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

#![feature(yeet_expr)]

fn always_yeet() -> Option<String> {
    do yeet;
}

fn main() {
    assert_eq!(always_yeet(), None);
}