]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/impl_trait_fallback.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / 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 }