]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-trait/yeet-for-option.rs
Rollup merge of #100804 - GuillaumeGomez:search-results-color-ayu, r=notriddle
[rust.git] / src / test / ui / try-trait / yeet-for-option.rs
1 // run-pass
2
3 #![feature(yeet_expr)]
4
5 fn always_yeet() -> Option<String> {
6     do yeet;
7 }
8
9 fn main() {
10     assert_eq!(always_yeet(), None);
11 }