]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/impl_trait_fallback.rs
Rollup merge of #95534 - jyn514:std-mem-copy, r=joshtriplett
[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 }