]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/impl_trait_fallback.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / never_type / impl_trait_fallback.rs
1 // check-pass
2
3 fn main() {}
4
5 trait T {}
6 impl T for () {}
7
8 fn should_ret_unit() -> impl T {
9     panic!()
10 }